#P1617. Number to English Conversion

    ID: 14903 Type: Default 1000ms 256MiB

Number to English Conversion

Number to English Conversion

Given an integer \(n\) (\(0 \le n \le 9999\)), convert it to its English words representation. Use standard American English. Insert the word and only if the last two digits (i.e., \(n \mod 100\)) are nonzero and \(\le 10\). Note that no hyphen should be used in the output.

inputFormat

The input consists of a single integer \(n\) where \(0 \le n \le 9999\).

outputFormat

Output the English words representation of \(n\) following the rules described above.

sample

101
one hundred and one