#53949: python 一行解


elwin.lu0120@gmail.com (Elwin)


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