e-olymp
favorite We need a little bit of your help to keep things running, click on this banner to learn more
Problems

Left and Right

Left and Right

Four digit positive integer is given. Swap the first and the last digit in it.

Input

One four digit positive integer n.

Output

Print the resulting number.

Time limit 1 second
Memory limit 128 MiB
Input example #1
1234
Output example #1
4231
Author Mayis Eyniyev
Спіраль