i="" while 1:i=int(input(i),2)%1