using System; using static System.Console; using System.Linq; using System.Collections.Generic; class Program { static int NN => int.Parse(ReadLine()); static void Main() { var n = NN; var s = ReadLine(); WriteLine(s.Substring(1, s.Length - 2)); } }