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