print(("".join(raw_input().decode('utf-8')[::-1])).encode('utf-8'))