def power_socket(a, b)
  return 0 if b == 1
  return 1 if b <= a
  ans = 1
  sum = a
  while sum < b
    sum += a - 1
    ans += 1
  end

  ans
end

a, b = gets.split.map(&:to_i)
puts power_socket(a, b)