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