a=b=0 puts [a,b,$.]*' 'if($.=Math.hypot a+=1/b=b%$$+1,b)==$.while a