n = int(input())
l = list(map(int, input().split()))
l = list(dict.fromkeys(l))
print(' '.join(map(str, l)))