XX=int(input())
YY=list(map(str,input().split()))[:Xx]
ltl=[]
tt=[]
for i in range(0,len(YY)):
    l.append(YY[i].lower())
for i in range(0,XX):
      m=min(l)
      tt.append(m)
      l.remove(min(l))
for i in t:
    print(i)
