n = int(input()) a = n // 100b = (n // 10) % 10c = n % 10 print(c * 100 + b * 10 + a)
321
123
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!