n = int(input()) s = input() a = s[1:-1] print(a)