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