object Main {
  def main(args: Array[String]): Unit = {
    val sc = new java.util.Scanner(System.in)
    val a, b = sc.nextInt

    val ans =
      if (b - a <= 0) 1
      else if (a == 2) b - 1
      else b / a + 1
    println(ans)
  }
}