stack = list(input()) while len(stack) > 0: element = stack.pop() print(element, end="")