object Main extends App{
  val Array(a,b) = scala.io.StdIn.readLine.split(" ").map(_.toInt)
  if(b==1) println (0)
  else{
    var count = 1
    while(a+(a-1)*(count-1)<b) count+=1
    println(count)
  }
 }
