n=0;exec"n+=1;i=s=1\nwhile s:i+=1;s+=i*(n%i<1)-1\nif i>n:print n\n"*500