#include <iostream>
#include <string>
#include <vector>
#include <algorith>
using namespace std;
string ones[] = {"","one","two","three","four","five,"six,"seven","eight","nine","ten","eleven","twelve","thirteen","fourteen","fifteen","sixteen","seventeen","eighteen","nineteen"};
string tens[] = {"","","twenty","thirty","forty","fifty","sixty","seventy","eighty","ninety"};

string numTowords99(int n){
    if (n >= 1 && n < 20) {
    return ones;
    } else if (n >= 20 && n < 100){
        return tens[n/10] + (n % 10 != 0? "" + ones[n % 10] : "");
     }
     return "";
    string numTowords99(int n) {
        string res = "";
        if ( n>= 100){
         res += ones[n/100] + " hundred";
         if (n% 100 != 0){
             res += "and";
             }
             
    }
    res += numToWords99(n % 100);
    return res;
    }
    int main() {
        int num;
        if(!(cin >> num )){
            cout << "**Invalid input**" << endl;
            return 0;
            }
            if (num < 1 || num > 9999){
                 cout << "**Invalid input**" << endl;
            } else { 
                size_t last = words.find_last_not_of('');
                cout << "**" << words.substr(first, (last - first + 1 )) << "**" << endl;
            }
            }
            return 0;
}