for s in sorted([input() for i in range(int(input()))]):
    print(s)