function Main(input) {
	input = input.trim();
  input = input.split(" ").map((list)=>Number(list));
  var A = input[0];
  var B = input[1];
  if(B == 1){
     console.log(0);
    return;
     }else if(B < A){
         console.log(1);
    return;     
              }
  var output = 1;
  while(A < B){
    var tmpA = A;    
    A += tmpA - 1;
    output++;
  }
  console.log(output);
}

Main(require("fs").readFileSync("/dev/stdin", "utf8"));
