def streamrac2(): a,b,c,d=0,1,1,2 while True: y=b//d if y==(a+b)//(c+d): print(y) a=10*(a-c*y) b=10*(b-d*y) else: a,b=b,a+2*b c,d=d,c+2*d