lines = []
while True:
    try:
        lines.append(int(input()))
    except:
        break

i = 0
while i < len(lines):
    out = set()
    for j in range(i+1, i+1+lines[i]):
        out.add(lines[j])
    for value in sorted(out):
        print(value)
    i = i + 1 + lines[i]