from sys import stdin def main(): S = input() print(S[::-1]) input = lambda: stdin.readline().rstrip() main()