/*
#include <stdio.h>
#include <string.h>
int main()
{
char str1[21]="";
char str2[21]="";
char str3[21]="";
int ro,e1,e2,e3;
scanf("%s",str1);
scanf("%s",str2);
scanf("%s",str3);
e1=strlen(str1);
e2=strlen(str2);
e3=strlen(str3);
if (str1[e1-1]==str2[0]&&str2[e2-1]==str3[0]&&str1[0]==str3[e3-1])
{
printf ("good");
}
else
{
printf ("bad");
}
return 0;
}
*/
/**
ASCII CODE 아스키코드
easy ver. 모든 문자는 고유 코드 넘버가 있다.
hard ver. 미국에서 정보를 교환/통신할때 쓰는 표준 코드
American
Standard
Communication
Information
Interchange
NULL 0
' ' 32
'#' 35
'0' 48
'1' 49
...
'9'
'A' 65
'B' 66
...
'Z'
'a' 97
'b' 98
'c' 99
...
'z'
#include <stdio.h>
#include <string.h>
int main()
{
printf("%c",65);
printf("%d",'a');
printf("%c",'t'-32);
if(str[i]=='t') (ok)
if(str[i]==116) (ok)
if( 65<=str[i] && str[i]<= 90) (ok)
if('A'<=str[i] && str[i]<='Z') (ok)
return 0;
}
*//*
#include <stdio.h>
#include <string.h>
int main()
{
char str[1001]="";
int i;
scanf("%s",str);
for (i=0;str[i]!=NULL;i++)
{
if('A'<=str[i] && str[i]<='Z')
{
printf("%c",str[i]+32);
}
else if('a'<=str[i] && str[i]<='z')
{
printf("%c",str[i]-32);
}else
{
printf ("%c",str[i]);
}
}
return 0;
}
*//*
#include <stdio.h>
#include <string.h>
int main ()
{
char str[21]="";
int i;
scanf ("%s",str);
for (i=0;str[i]!=NULL;i++)
{
printf ("%c",str[i]+2);
}
printf ("\n");
for (i=0;str[i]!=NULL;i++)
{
printf ("%c",(str[i]* 7) % 80 + 48);
}
}
*//*
#include <stdio.h>
#include <string.h>
int main ()
{
char str[201]="";
int i;
gets (str);
for (i=0;str[i]!=NULL;i++)
{
if(str[i]==32)
{
printf (" ");
}
else if(str[i]>='a'&&str[i]<='c')
{
printf("%c",str[i]+23);
}else if (str[i]>='A'&&str[i]<='C')
{
printf("%c",str[i]+23);
}else
{
printf ("%c",str[i]-3);
}
}
}
*/
/**
간지 1도 없다 (십 간,십이 지)
*/
#include <stdio.h>
#include <string.h>
int main ()
{
char str[1000000]="";
int i;
scanf ("%s",str);
}