# your code goes heren=int(input())a=[int(i) for i in input().split()]a1=set(a)print(a1)
7 5 4 10 9 21 4 10
{4, 5, 9, 10, 21}
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!