import sys
a = int(input())
str = input()
reversed_str = str[::-1]
print(reversed_str)