# https://open.kattis.com/problems/digitswap
# Time limit: 1s
# Diff 1.3 Easy

# 20 chars
print(input()[::-1])


# 32 chars: Not in Top 10 (9..16 chars)
# s=input()
# print(f"{s[1]}{s[0]}")
