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