#!ruby -p b=proc{|r|eval'0b1'+$'[/.{#{r}}/]} (x=b[b[~/1/]-1] $_=$' *f=i=1 f=i,*f until x<