using?namespace?std;
int?main()?{
char?a[]=?"零壹二三四五六七八九百十?";//構建字典,壹個漢字長度是英文的兩倍?
int?n,b=2;
int?r[3]={0};//存儲百位各位十位數字?
scanf("%d",&n);
while(n/10!=0)?{
r[b--]=n%10;?//各位,十位,百位,
n/=10;
}
r[b--]=n%10;
for(int?i=0;?i<3;?i++)?{
if(r[i]==0)?{
if(i!=0?&&?i!=2)
printf("零");
continue;
}
printf("%c%c%c%c",a[r[i]*2],a[r[i]*2+1],a[(i+10)*2],a[(i+10)*2+1])?
}
}