n = input()
a = list(n)
b = a[::-1]
c = "".join(b)
d = int(c)
print(d)