P27574 [洛谷] A Thousand Reasons for Love and Sorrow
普及+
题目描述

Problem Background

(This problem hides two song titles, see if you can find them~~~)

Chapter Two of "The Story of Love and Sorrow: Heartache."

After experiencing heartache, the Love and Sorrow deity is incapacitated.

Problem Description

Yue Luo Wu Ti asked the Love and Sorrow deity why, and the deity wrote a number $n$ ($n \le 9999$), saying that translating it into English would reveal the reason. Yue Luo Wu Ti took the number, intending to translate it into English, but the class teacher called him to help with something. Eager to know the answer quickly, he entrusted this challenging task to you.

Standard American English is required, with the word and only added when the last two digits are $\le 10$ and without hyphens.

Input Format

Only one line, a number $n$ ($n \le 9999$).

Output Format

One line of English, representing the translation of $n$ into English.

Sample Input and Output

Sample Input #1

5208

Sample Output #1

five thousand two hundred and eight

Sample Input #2

5280

Sample Output #2

five thousand two hundred eighty

Sample Input #3

5000

Sample Output #3

five thousand

Sample Input #4

5028

Sample Output #4

five thousand and twenty eight

Notes

The output line should not be capitalized at the beginning. Follow standard American English rules, meaning no and between two non-zero numbers without zeros in between, and no period at the end of the line.

输入格式

见题面 Input 部分

输出格式

见题面 Output 部分

样例输入
5208
样例输出
five thousand two hundred and eight