public static void Main()
String[] onesArray = new String[]
"", "one", "two", "three", "four", "five", "six", "seven", "eight", "nine", "ten", "eleven", "twelve", "thirteen", "fourteen", "fifteen", "sixteen", "seventeen", "eighteen", "nineteen"};
String[] tensArray = new String[]
"", "", "twenty", "thirty", "fourty", "fifty", "sixty", "seventy", "eighty", "ninety" };
int toConvert = int.Parse(Console.ReadLine());
int thousands = toConvert / 1000;
int thousandsRem = toConvert % 1000;
int hundreds = thousandsRem / 100;
int hundredsRem = thousandsRem % 100;
int tens = hundredsRem / 10;
int ones = hundredsRem % 10;
String result1 = (thousands > 0)
? onesArray[thousands] + "thousand"
String result2 = (hundreds > 0)
? onesArray[hundreds] + "hundred"
result3 = onesArray[tens] + " " + onesArray[ones];
String output = result1 + " " + result2 + result3;
Console.WriteLine(output.Trim());