/*#include <stdio.h>
#include <stdlib.h>
int main()
{
printf("Hello world!\n");
return 0;
}*/
/**
아스키코드 ASCII CODE : 모든 문자는 고유의 코드 넘버를 가진다
AMERICAN
STANDARD
COMMUNICATION
INFORMATION
INTERCHANGE
정보를 교환할때 미국에서 쓰는 표준 코드
' ' 32
'0' 48
'1' 49
'2' 50
...
'9'
'A' 65
'B' 66
...
'Z'
'a' 97
'b' 98
'c' 99
...
'z'
int or long long int로도 표현 불가능한 엄청 큰 숫자
char number[500] = "12345467854342657687678674531321321468";
*/
/*#include <stdio.h>
#include <string.h>
int main()
{
int i;
char str[21]="";
scanf("%s",str);
for(i=0;str[i]!=NULL;i++)
printf("'%c'\n",str[i]);
return 0;
}
#include <stdio.h>
#include <string.h>
int main()
{
char num[500]="";
int sum=0,i;
scanf("%s",num);
for(i=0;num[i]!=NULL;i++)
sum+=num[i]%3;
if(sum%3==0)
printf("1");
else
printf("0");
return 0;
}
#include <stdio.h>
#include <string.h>
int main()
{
char code[201]="";
int i;
gets(code);
for(i=0;code[i]!=NULL;i++)
{
if(code[i]!=' ')
{
code[i]=code[i]-3;
if(code[i]<97)
code[i]+=26;
}
}
printf("%s",code);
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(str[i]>='A'&&str[i]<='Z')
str[i]=str[i]+32;
else if(str[i]>='a'&&str[i]<='z')
str[i]=str[i]-32;
}
printf("%s",str);
return 0;
}
#include <stdio.h>
#include <string.h>
int main()
{
int i;
char inta[101]="",intb[101]="";
scanf("%s %s",inta,intb);
if(strlen(inta)>strlen(intb))
printf("%s %s",intb,inta);
else if(strlen(inta)<strlen(intb))
printf("%s %s",inta,intb);
else
{
for(i=0;inta[i]!=NULL;i++)
{
if(inta[i]>intb[i])
{
printf("%s %s",intb,inta);
break;
}
else if(inta[i]<intb[i])
{
printf("%s %s",inta,intb);
break;
}
}
}
return 0;
}
#include <stdio.h>
#include <string.h>
int main()
{
int n;
char str[13]="LABCDEFGHIJK";
scanf("%d",&n);
printf("%c",str[(n-3)%12]);
printf("%d",(n-4)%10);
return 0;
}*/
#include <stdio.h>
#include <string.h>
int main()
{
int n,i,arr[8]={};
char str[9]="",col[27]="ZABCDEFGHIJKLMNOPQRSTUVWXY";
scanf("%d",&n);
for(i=1;;i++)
{
arr[i]=n%26;
if(n%26==0)
arr[i]--;
if(arr[i]==-1)
str[i]=' ';
else
str[i]=col[arr[i]];
n=n/26;
if(n<1)
break;
}
for(str[i+1]=NULL;i>=1;i--)
if(str[i]!=' ')
printf("%c",str[i]);
return 0;
}