eolymp
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