object Main {
  def main(args: Array[String]): Unit = {
    val sc = new java.util.Scanner(System.in)
    val a, b = sc.nextFloat

    val ans =
      if (b == 1) 0
      else if (a >= b) 1
      else 1 + Math.ceil((b - a) / (a - 1))
    println(ans.toInt)
  }
}