using C=System.Console;using System.Linq;class P{static void Main()=>C.In.ReadToEnd().Split('\r').Skip(1).OrderBy(x=>x).ToList().ForEach(C.Write);}