# print(input()[::-1]) n = input() list1 = [] for char in n: list1.append(char) list1.reverse() print(''.join(list1))