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