for l in sorted([*open(0)][1:]):print(l.strip())