/*
#include <stdlib.h>
int main()
{
printf("Hello world!\n");
return 0;
}
1414
#include <stdio.h>
#include <string.h>
int main()
{
char str[101]={};
gets(str);
int c=0,cc=0,i;
for(i=0; str[i] !=NULL; i++)
{
if(str[i] =='c' || str[i] == 'C')
{
c++;
if(str[i+1] == 'c' || str[i+1] == 'C')
{
cc++;
}
}
}
printf("%d\n%d",c,cc);
return 0;
}
//?? cC Cc cc CC
//str[i]=='c' && str[i+1]=='C'
문자(한글자) 'c' 'a' 'b' 'z' ... 'hello' (x)
문자열(단어) "hello"
1419
#include <stdio.h>
#include <string.h>
int main()
{
char str[101]={};
gets(str);
int i,c=0;
for(i=0; str[i] != NULL; i++)
{
if(str[i] == 'l' && str[i+1] == 'o' && str[i+2] == 'v' && str[i+3] == 'e')
{
c++;
}
}
printf("%d",c);
return 0;
}
3+3+2+1==3의배수
// strcmp
1990
#include <stdio.h>
#include <string.h>
int main()
{
char str[502]={ };
gets(str);
int i,sum=0;
for(i=0; str[i]!=NULL; i++)
{
sum+=str[i]-48;
}
// sum : 각 자리수의 합
if(sum%3 == 0)
{
printf("1");
}
else if(sum%3!=0)
{
printf("0");
}
return 0;
}
*/
#include <stdio.h>
#include <string.h>
int main()
{
char str[51]={ };
scanf("%s",str);
int i,c=0,d=0;
for(i=0; i!=NULL; i++)
{
if(str[i] == '(')
{
d=5*i;
}
else if(str[i] == ')')
{
c=10*i;
}
}
printf("%d",c+d+10);
return 0;
}