import sys readline=sys.stdin.readline write=sys.stdout.write N=int(readline()) S=readline().rstrip() print(S[1:-1])