def ward(): N = input() S = input() print(s[1:-1]) ward()