from collections import * from itertools import * from functools import * from heapq import * import sys,math input = sys.stdin.readline N = int(input()) S = list(input())[:-1] S = deque(S) S.pop() S.popleft() print(''.join(S))