function main(input) {
  const args = input.split(" ");
  const A = args[0];
  const B = args[1];
  var a_number = Number(A);
  var b_number = Number(B);
  var a_count = Number(A);
  var count = 1;
  if(b_number===1) {
    console.log("0");
  } else {
    while(a_number < b_number) {
      count++
      a_count = a_count - 1 + a_number 
    }
    console.log(count);
  }
}

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