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