# ε…₯εŠ› S = input() # ε‡ΊεŠ› for c in reversed(S): print(c, end='')