char_length = int(input())
char = input()

print(char[1:char_length-1])