#include<stdio.h>
#include<stdlib.h>
int main(void)
{
int total=0,m,i=0,a[4]; //最大不会超过10000,数组a有4个元素
char num=0;
char *digit[10] = {"ling","yi","er","san","si","wu","liu","qi","ba","jiu"};
while((num=getchar())!='\n')
total=total+num-'0'; //输入累加
do
{
a[i]=total%10; //取出最低位数放入数组a
i++;
total=total/10;
}while(total);
if(i!=1) //为符合输出要求
{
for(m=i;m>1;m--)
printf("%s ",digit[a[m-1]]);
printf("%s\n",digit[a[0]]);
}
else
printf("%s\n",digit[a[0]]);
system("pause");
return 0;
}