# your code goes hereprint(int(input()[::-1]))
123
321
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!