#include <iostream>
using namespace std;

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"};

void words(int n){
    if(n>=1000){
        cout<<one[n1000]<<" thousand";
        n%1000;
    }
    if(n>=100){
        cout<<one[n/100]<<"hundred";
        n%100;
        if(n>0) cout<<"and";
    }
    if(n>=20){
        cout<<ten[n10]<<" ";
        n%=10;
    }
    if(n>0) cout<<one[n];
}
int main(){
    int n;
    cin>>n;
    if(n<1 || n>9999)
         cout<<"Invalid input";
         
}