'use strict'

const Main = (input) => {
  const tmp = input.trim().split(' ')
  const A = parseInt(tmp[0])
  const B = parseInt(tmp[1])

  let sockets = A
  let count = 1

  while (sockets < B) {
    sockets += A - 1
    count += 1
  }

  let result = count

  console.log(result)
  return result
}

Main(require('fs').readFileSync('/dev/stdin', 'utf8'))