object Main extends App {
  val sc = new java.util.Scanner(System.in)
  val a, b = sc.nextInt
  def PowerSocket(a: Int, b: Int): Int = {
    //    if ((b - 1) % (a - 1) == 0)
    //      (b - 1) / (a - 1)
    //    else
    Math.ceil((b - 1) / (a - 1).toDouble).toInt
  }
}