P1617 A Thousand Heartbreaking Reasons for Love and Sorrow
Background
(This problem hides two song titles—see if you can find them.)
Chapter 2 of “The Story of Love and Sorrow, Part 1: heartache.”
After experiencing heartache, the “Love and Sorrow” guru couldn’t carry on.
Description
Yueluo Wuti asked the “Love and Sorrow” guru why, and the guru wrote a number $n$ ($n \le 9999$), saying that translating it into English would reveal the reason. Yueluo Wuti took the number and planned to translate it, but the homeroom teacher asked him to help with something. He wanted the answer quickly, so he entrusted this task to you.
Use standard American English; add `and` only when the last two digits are $\le 10$, and do not use hyphens.
Input Format
A single line containing an integer $n$ ($n \le 9999$).
Output Format
One line in English that is the translation of $n$.
Explanation/Hint
Do not capitalize the beginning of the output line. Follow standard American English: if there is no zero between two non-zero numbers, do not add `and`; no period at the end of the line.
Translated by ChatGPT 5