#C1266. Reverse the Digits
Reverse the Digits
Reverse the Digits
Your task is to implement a function that reads a string representing a sequence of digits and returns the digits in reverse order. Note that the string may contain leading zeros, and these zeros should be preserved in their new positions after the reversal. For example, given the input 12345
, the output should be 54321
, and given 00123
the output should be 32100
.
inputFormat
The input consists of a single line containing a string s composed of digits. The string might include leading zeros.
outputFormat
Output the string s with its digits in reversed order.
## sample12345
54321