import java.util.Scanner;

fun main (args : Array<String>) {
  val input = Scanner(System.`in`);
  
  while (input.hasNext()) {
    val A = input.nextInt()
    val B = input.nextInt()
    var num = (B - 1) / (A - 1) + if ((B - 1) % (A - 1) > 0) 1 else 0
    
    println(num)
  }
}