n=int(input())
s=input()
reverse_str=s[::-1]
print(reverse_str)