#26117: python 94狂 2行解決


dabnmaomi (unknowndabnmaomi)


n = int(input()[::-1])

print(n)