i=1;exec"j=i;exec'j=sum(int(c)**2for c in`j`);'*9\nif j<2:print i\ni+=1;"*2000