let arr = readLine()!.characters.split{$0 == " "}.map{ Int(String($0))! }
let a = arr[0]
let b = arr[1]
var sum = a
var ret = 1



while sum < b {
  sum += a - 1
  ret += 1
}

if b == 1 {
  ret = 0
}

print(ret)