#C12897. Replace Digits with Words

    ID: 42374 Type: Default 1000ms 256MiB

Replace Digits with Words

Replace Digits with Words

You are given a string consisting of lowercase letters and digits. Your task is to replace each digit in the string with its corresponding English word. The digit-to-word mapping is as follows:

  • $$0 \to \texttt{zero}$$
  • $$1 \to \texttt{one}$$
  • $$2 \to \texttt{two}$$
  • $$3 \to \texttt{three}$$
  • $$4 \to \texttt{four}$$
  • $$5 \to \texttt{five}$$
  • $$6 \to \texttt{six}$$
  • $$7 \to \texttt{seven}$$
  • $$8 \to \texttt{eight}$$
  • $$9 \to \texttt{nine}$$

For example, if the input is "a1b2c3", then the output should be "aonebtwocthree".

inputFormat

The input consists of a single line containing the string. The string may contain lowercase letters and digits. It can also be an empty string.

outputFormat

Print a single line which is the transformed string with all digits replaced by their corresponding English words.

## sample
1234567890
onetwothreefourfivesixseveneightninezero