#22Easy
Reverse a three-digit number
Time: 1 s · Memory: 256 MB
- Arithmetic
Statement
You are given a three-digit number . Find the number obtained by writing its digits in reverse order.
Input format
A single integer ().
Output format
A single integer — the reversed number. Leading zeros are not written: for the answer is .
Examples
Input
324
Output
423
Input
120
Output
21
Note
The hundreds digit is , the tens digit is and the units digit is (integer division). The reversed number is units + tens + hundreds.
