l=range(1,int(raw_input())+1,2);x=3;i=2 while x<=len(l): y=x while y<=len(l):l.pop(y-1);y+=x-1 x=l[i];i+=1 for n in l: print n