Find the number 4
Execution time limit is 1 second
Runtime memory usage limit is 64 megabytes
In the three-digit number N, the last digit was crossed out. When the digits in the resulting two-digit number were swapped and then the last digit of the number N was appended to the left, the number X was obtained. Find the number X if the value of N is known.
Input
A three-digit natural number N.
Output
The solution to the problem.
Examples
Input #1
Answer #1
Submissions 5K
Acceptance rate 78%