object Main extends App {
  import scala.math.ceil
  val input = scala.io.StdIn.readLine.split(" ").map(_.toInt)
  val (plugPerTap, plugNeedAtLeast) = (input(0), input(1))
  val tapNeeded = ceil((plugNeedAtLeast - 1) / (plugPerTap - 1)).toInt
  println(tapNeeded)
}