n = int(input()) s = input() for i in range(1,n-1): print(s[i],end="") print()