'use strict'

function main(input) {
  input = input
    .trim()
    .split(' ')
    .map(v => Number(v))
  let cnt = 1
  const ans = Math.ceil((input[1] - 1) / (input[0] - 1))
  console.log(ans)
}
main(require('fs').readFileSync('/dev/stdin', 'utf8'))
