n=0 exec"s=0;n+=1;k=n\nwhile 7%k:s+=1;k=[k+2>>2,6*k+2][k%2]\nprint'%s,'%[s,'Infinity'][k>1],n;"*999

Note that non-ascii characters in the above source code will be escaped (such as \x9f).

download

return top