#45258: Python 翻轉再int就可以了


s913010@gm.hccvs.hc.edu.tw (波羅麵包)


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