while True:
    try:
        nums_list=[]
        n=input()
        for i in range(int(n)):
            nums=input()
            nums_list.append(int(nums))
        nums_list.sort()
        for i in range(len(nums_list)):
            if i<(len(nums_list)-1) and nums_list[i]==nums_list[i+1]:
                continue
            print(nums_list[i],end=" ")
        print()
    except:
        break