function Main(input) {
  input = input.split(" ").map(Number);
var A = input[0] - 1;
var B = input[1];

  var C = B/ A;
  console.log(C);
console.log(Math.floor(C)+1);

}
Main(require("fs").readFileSync("/dev/stdin", "utf8"));