An element is created only if it is not present. For example, if the first list is [7,6,4,7,1,5], the second list is [7,6,4,1,5].
n=[]
for j in int(input()):
n.append(int(input()))
l=[]
for o in n:
if not o in l:
l.append(o)
print(l)