import sys input = sys.stdin.readline from collections import * N = int(input()) S = input()[:-1] print(S[1:-1])