# マルチバイト文字テスト(テスト用) def main(): S = list(input().strip()) ans = "" for s in reversed(S): ans += s print(ans) if __name__ == "__main__": main()