#include<stdio.h>
int main()
{
char p[10][5]={"ling","yi","er","san","si","wu","liu","qi","ba","jiu"};
char a[10000]={0};
int b[10000]={0};
int sum=0,i,j;
gets(a);
for(i=0;a[i]!='\0';i++)sum+=a[i]-'0';
if(sum==0)printf("%s",p[0]);
for(j=0;sum>0;j++)
{
b[j]=sum%10;
sum=sum/10;
}
for(i=j-1;i>0;i--)
{
printf("%s",p[b[i]]);
printf(" ");
}
printf("%s",p[b[0]]);
printf("\n");
return 0;
}