#35951: python解題


11360643@me.mcu.edu.tw (11360643 11360643)


a=input()
print(int(a[::-1]))