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