import java.util.Scanner



object Main {

  def read(): (Int, Int) = {
    val sc: Scanner = new Scanner(System.in)
    val a, b= sc.nextInt
    sc.close()
    (a, b)
  }


  def solve(a: Int, b: Int): Int = {
    if(b <= 1) return 0
    var cnt = 0
    while(b > a * cnt - Math.max(cnt-1, 0)) {
      cnt += 1
    }
    cnt
  }


  def main(args: Array[String]): Unit = {
    val (a, b) = read()
    println(solve(a, b))
  }

}
