n=0 exec"t=x=n=n+1\nwhile 7%x:x=x%2*x*23+x+2>>2;t+=1\nprint['Infinity',`t-n`][x<7]+',',n;"*999