e-olymp

051

051

Time limit 1 second
Memory limit 64 MiB
Input example #1
1234
Output example #1
4321