#31441: python 一行解


dfd8282@gmail.com (fishhh)


print(int("".join(input()[::-1])))