for n=1,999 do x=n t=49 while x*t>t do x=(x%2*x*23+x+2)/4 x=x-x%1 t=t-1 end print((t<1 and"Infinity"or 49-t)..", "..n)end