n, m = str(raw_input()).split()a = {x for x in range(int(n))}print(a)
--------------
Заводим генератором во множество
n, m = str(raw_input()).split()a = {int(input()) for i in range(int(n))}print(a)