#55433: Python 一行解


xinghong.su0818@gmail.com (Jeremy)


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