#include<iostream>
#include<stack>
using namespace std;
long getsum(long n){
int sum=0;
while(n>0){
sum=sum+n%10;
n=n/10;
}
return sum;
}
void show(long n){
stack<long >s;
long a;
do{
a=n%10;
s.push(a);
n=n/10;
}while(n>0);
while(!s.empty()){
long b=s.top();
switch(b){
case 0:cout<<"ling"<<' ';break;
case 1:cout<<"yi"<<' ';break;
case 2:cout<<"er"<<' ';break;
case 3:cout<<"san"<<' ';break;
case 4:cout<<"si"<<' ';break;
case 5:cout<<"wu"<<' ';break;
case 6:cout<<"liu"<<' ';break;
case 7:cout<<"qi"<<' ';break;
case 8:cout<<"ba"<<' ';break;
case 9:cout<<"jiu"<<' ';break;
}
s.pop();
}
}
int main(){
long a;
cin>>a;
long b=getsum(a);
show(b);
return 0;
}