fork download
  1. # your code goes here
  2. n=int(input())
  3. a=[int(i) for i in input().split()]
  4. a1=set(a)
  5. print(a1)
  6.  
Success #stdin #stdout 0.03s 9888KB
stdin
7
5 4 10 9 21 4 10
stdout
{4, 5, 9, 10, 21}