#include<iostream>
#include<string>
using namespace std;
int main()
{string s;
int sum=0;
cin>>s;
for(int i=0;i<s.length();i++)
sum+=(s[i]-'0');//s[i]表示出ASCII码值,减‘0’得到正常值
string num;
num=to_string(sum);//把sum转为string类型;
string a[10]={"ling","yi","er","san","si","wu","liu","qi","ba","jiu"};
for(int i=0;i<num.length();i++)
{if(i!=0) cout<<" ";
cout<<a[num[i]-'0'];}
return 0;
}
这题不会;