import java.io.*; import java.util.*; import java.math.*; public class fibs { public static void main(String[] args) throws Exception { BufferedReader r=new BufferedReader(new FileReader("fibs.in")); //ifstream file(); String l,s; int i; double n1,n2,y1,y2,z1,z2; BigDecimal x1,x2,nul=new BigDecimal("0"); BigDecimal A,C; BigDecimal Y1,Y2; double a,c,k; c = (Math.sqrt(5)+1)/2; a = 1/c; A = new BigDecimal(a); C = new BigDecimal(c); while(true) { try{ l = r.readLine(); //System.out.println(l); if (l==null) break; StringTokenizer t=new StringTokenizer(l); s = t.nextToken(); z1 = s.length()-20; x1 = new BigDecimal(s); s = t.nextToken(); z2 = s.length()-20; x2 = new BigDecimal(s); if (x1.equals(nul) && x2.equals(nul)) break; //System.out.println(x1.toString()); //System.out.println(x2.toString()); if (z1<0) z1= 0; if (z2<0) z2= 0; s = "1"; for (i=0;i> x1 >> x2; if (x2==x1 && x1==0) break; n1 = log(x1/a)/log(c); n2 = log(x2/a)/log(c); cout << (int)floor(n2-n1+0.5) << endl; } return 0; } */