def main(): input() print(input()[1::-1]) if __name__ == '__main__': main()