#K66037. Spell the Digits
Spell the Digits
Spell the Digits
Given a string consisting only of digits (0-9), your task is to spell out each digit in English. The digits should be converted using the mapping below and the corresponding words should be printed separated by a single space. In mathematical notation, the mapping is given by $$0 \rightarrow \text{zero},\ 1 \rightarrow \text{one},\ 2 \rightarrow \text{two},\ \ldots,\ 9 \rightarrow \text{nine}.$$ For example, an input of 123
should produce one two three
as output.
inputFormat
The input consists of a single line containing a non-empty string of digits (0-9). There are no extra spaces or characters.
outputFormat
Output a single line with the English words corresponding to each digit in the input string, separated by a single space.
## sample0
zero
</p>