import sys f = open(sys.argv[1]) sys.stdout.write(f.read()[::-1])