function *main() {
  
  const [A, B] = (yield).split(" ").map(s => +s);
  console.log(Math.ceil((B-1)/(A-1)));
  
}

const iter = main();
iter.next();
require("readline").createInterface({input: process.stdin}).on("line", s => iter.next(s));
