'use strict';
const main = val => {
  const a = parseInt(val[0].split(' ')[0], 10);
  const b = parseInt(val[0].split(' ')[1], 10);
  let ans = Math.ceil((b-1)/(a-1));
  console.log(ans);
}
main(require("fs").readFileSync("/dev/stdin", "utf8").split('\n'));