#include<iostream>
using namespace std;
class Numbertowords
{
    public:
    Numbertowords(int n)
    {
        if(n<1 || n>9999)
        {
            cout<<"invalid input";
            return;
        }
        string one[]={"","one","two","three","four","five","six","seven","eight","nine","ten","eleven","twelve",
        "thirteen","fourteen","fifteen","sixteen","seventeen","eighteen","nineteen"};
        string ten[]={"","","twenty","thirty","fourty","fifty","sixty","seventy","eighty","ninety"};
        if(n>=1000)
        {
            cout<<one[n/1000]<<"thousand";
            n%=100;
        }
        if(n>=100)
        {
            cout<<one[n/100]<<"hundred";
            n%=100;
        }
        if(n>=20)
        {
            cout<<ten[n/10]<<" ";
            n%=10;
        }
        if(n>0 && n<20)
        {
            cout<<one[n];
        }
            
       
    }
};
int main()
{
    int num;
    cin>num;
    Numbertowords obj(num);
    return 0;
}