N = int(input()) S = input() ans = S[1:N-1] print(ans)