codeforces-scrape

Codeforces scraped problems and editorials
git clone git://git.laack.co/codeforces-scrape.git
Log | Files | Refs | README

535A.md (1287B)


      1 Source: https://codeforces.com/problemset/problem/535/A
      2 
      3 A. Tavas and Nafas
      4 
      5 time limit per test
      6 
      7 1 second
      8 
      9 memory limit per test
     10 
     11 256 megabytes
     12 
     13 input
     14 
     15 standard input
     16 
     17 output
     18 
     19 standard output
     20 
     21 Today Tavas got his test result as an integer score and he wants to share it with his girlfriend, Nafas.
     22 
     23 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.
     24 
     25  ![](https://espresso.codeforces.com/2085b3e153de86bf36ca6563685a007437a065a2.png) 
     26 
     27 He ate coffee mix without water again, so right now he's really messed up and can't think.
     28 
     29 Your task is to help him by telling him what to type.
     30 
     31 Input
     32 
     33 The first and only line of input contains an integer *s* (0 ≤ *s* ≤ 99), Tavas's score.
     34 
     35 Output
     36 
     37 In the first and only line of output, print a single string consisting only from English lowercase letters and hyphens ('-'). Do not use spaces.
     38 
     39 Examples
     40 
     41 Input
     42 
     43 ```
     44 6
     45 ```
     46 
     47 Output
     48 
     49 ```
     50 six
     51 ```
     52 
     53 Input
     54 
     55 ```
     56 99
     57 ```
     58 
     59 Output
     60 
     61 ```
     62 ninety-nine
     63 ```
     64 
     65 Input
     66 
     67 ```
     68 20
     69 ```
     70 
     71 Output
     72 
     73 ```
     74 twenty
     75 ```
     76 
     77 Note
     78 
     79 You can find all you need to know about English numerals in [http://en.wikipedia.org/wiki/English_numerals](https://en.wikipedia.org/wiki/English_numerals) .