#K12381. Minglish Number System Conversion
Minglish Number System Conversion
Minglish Number System Conversion
You are given a non-negative integer in base \(10\). Your task is to convert this integer into its Minglish number system representation. In the Minglish system, the digits of the given number are reversed. In other words, if the input is represented as a string in decimal, you must output the string in reverse order.
Note: Even if the input number ends with one or more zeros, these zeros should be preserved in the output after reversal (e.g. 1000
becomes 0001
).
For example, if the input is 12345
, then the output should be 54321
.
inputFormat
The input consists of a single line containing a non-negative integer \(n\). The integer is given without any leading whitespace. You should read the input from stdin.
outputFormat
Output a single line containing the Minglish number representation of the given integer. Write your output to stdout. No extra spaces or newline characters should be printed.
## sample12345
54321