include<stdio.h>
include<math.h>
int main()
{
char number[10]={'a','b','c','d','e','f','g','h','i','j'}; //存数字
char unit[10]={0,'S','B','Q','W','S','B','Q','Y'};
char money[17];
int n,num=0,cnt=0,i=0,count=0,t=0,k=0
scanf("%d",&n);
num=n;
if(n==0) printf("a");
else{
while(n){
n/=10;
cnt++;
}
cnt=cnt-1;
count=pow(10,cnt);
n=num;
while(n){
num=n/count;
n%=count;
if(num){
money[i++]=number[num];
if(cnt>=1)
money[i++]=unit[cnt];
}
else{
if(cnt==4)
money[i++]=unit[cnt];
if(cnt!=0&&t==0){
money[i++]=number[num];
t=1;
}
}
count/=10;
cnt--;
}
for(k=0;k<i;k++){
printf("%c",money[k]);
}
}
return 0;
}