'use strict';

function main(stdin) {
  const input = stdin.split(' ').map(v => parseInt(v, 10));
  const A = input[0];
  const B = input[1];

  const p = A - 1;
  let cur = 1;
  let ans = 0;

  while (cur < B) {
    cur += p;
    ++ans;
  }
  
  console.log(ans);
}

main(require('fs').readFileSync('/dev/stdin', 'utf8').trim());