n = int(input()) s = list(input()) print("".join(s[1:-1]))