Submit | All submissions | Best solutions | Back to list |
G10_2 - Tavas and Nafas |
Today Tavas got his test result as an integer score and he wants to share it with his girlfriend, Nafas.
His phone operating system is Tavdroid, and its keyboard doesn't have any digits! He wants to share his score with Nafas via text, so he has no choice but to send this number using words.
He ate coffee mix without water again, so right now he's really messed up and can't think.
Your task is to help him by telling him what to type.
Input
The first and only line of input contains an integer s (0 ≤ s ≤ 99), Tavas's score.
Output
In the first and only line of output, print a single string consisting only from English lowercase letters and hyphens ('-'). Do not use spaces.
Example
Input: 6 Output: six
Input: 99 Output: ninety-nine
Input: 20 Output: twenty
Cardinal Numbers
Cardinal numbers refer to the size of a group. In English, these words are numerals.
0 | zero (nought) | 10 | ten | ||
1 | one | 11 | eleven | ||
2 | two | 12 | twelve (a dozen) | 20 | twenty (a score) |
3 | three | 13 | thirteen | 30 | thirty |
4 | four | 14 | fourteen | 40 | forty (no "u") |
5 | five | 15 | fifteen (note "f", not "v") | 50 | fifty (note "f", not "v") |
6 | six | 16 | sixteen | 60 | sixty |
7 | seven | 17 | seventeen | 70 | seventy |
8 | eight | 18 | eighteen (only one "t") | 80 | eighty (only one "t") |
9 | nine | 19 | nineteen | 90 | ninety (note the "e") |
If a number is in the range 21 to 99, and the second digit is not zero, one typically writes the number as two words separated by a hyphen.
21 | twenty-one |
25 | twenty-five |
32 | thirty-two |
58 | fifty-eight |
64 | sixty-four |
79 | seventy-nine |
83 | eighty-three |
99 | ninety-nine |
Added by: | MaratónAFDM |
Date: | 2017-11-14 |
Time limit: | 12s |
Source limit: | 50000B |
Memory limit: | 1536MB |
Cluster: | Cube (Intel G860) |
Languages: | C C++ 4.3.2 JAVA |