#K69652. Translate Mathematical Expression to Words
Translate Mathematical Expression to Words
Translate Mathematical Expression to Words
You are given a mathematical expression as a string that contains digits and arithmetic operators (such as +, -, *, /). Your task is to translate this expression by replacing every digit with its corresponding English word equivalent. The mapping is given by: \(0 \to \text{zero}\), \(1 \to \text{one}\), \(2 \to \text{two}\), \(3 \to \text{three}\), \(4 \to \text{four}\), \(5 \to \text{five}\), \(6 \to \text{six}\), \(7 \to \text{seven}\), \(8 \to \text{eight}\), \(9 \to \text{nine}\). For example, the expression 3+5
should be translated to three+five
. The operators remain unchanged.
inputFormat
The input consists of a single line containing a mathematical expression composed of digits and arithmetic operators. The input is read from standard input (stdin).
outputFormat
Output the translated expression, where every digit is replaced with its corresponding English word. The output should be printed to standard output (stdout).
## sample3+5
three+five