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