def main(): _ = input() S = input() print(S[1:-1]) if __name__ == "__main__": main()