#include <iostream>
using namespace std;
int main()
{
char nn[10][5] = { "ling","yi","er","san","si","wu","liu","qi","ba","jiu" };
int a = 0, b = 0,c=0,d=0;
char fkd[30];
cin.getline (fkd, 30);
while (b < strlen(fkd))
{
a = a + fkd[b] - 48;
b++;
}
int mm[10];
int k = 0;
while (a !=0)
{
mm[k] = a % 10;
a /= 10;
k++;
}
for (; k - 1 >= 0; k--)
{
cout << nn[mm[k-1]]<<" ";
}
}