for i=17,1e4 do n=i;f=1>0;while n>9 do a=n%10;n=(n-a)/10;f=f and 25<(a-n%10)^2 end d=f and print(i)end