n=int(input()) x=[] for i in range(1,n+1,1): if i**0.5%1==0: x.append(i) for i in x: print(i,end=' ')