#include<iostream>
#include<string>
using namespace std;
int main()
{
string a[10]={"ling","yi","er","san","si","wu","liu","qi",
"ba","jiu"};
int b[20]; //存位数
int z;
cin>>z;
int i=0;
int count=0;
if(z==0)
{
cout<<a[0]<<endl;
}
if(z<0)
{
cout<<"fu ";
z=-z;
}
while(z)
{
b[i]=z%10;
z=z/10;
count++;
i++;
}
for(i=count-1;i>=0;i--)
{
cout<<a[b[i]];
if(i!=0)
{
cout<<" ";
}
}
return 0;
}
#include<iostream>
using namespace std;
int main()
{
int n;
cin>>n;
int i,sum=0,pre=1;
for(i=1;i<=n;i++)
{
pre=pre*i;
sum=sum+pre;
}
cout<<sum<<endl;
return 0;
}