f=open("input.txt") g=open("output.txt","wt") b=f.read() g.write(b[::-1])