Submit | All submissions | Best solutions | Back to list |
RETO1M11 - 1RETO 11 MARATON |
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: 3 Output: three
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:
0 | zero | 10 | ten | ||
1 | one | 11 | eleven | ||
2 | two | 12 | twelve | 20 | twenty |
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: | MARATON AFDM |
Date: | 2015-09-28 |
Time limit: | 1s |
Source limit: | 50000B |
Memory limit: | 1536MB |
Cluster: | Cube (Intel G860) |
Languages: | All except: ASM64 GOSU JS-MONKEY VB.NET |
hide comments
2018-10-13 16:49:02
Again, wrong output example making solvers waste time with WA's. How hard is it to copy/paste actual output from the judge solution? 99 -> ninety-nine |