def gets_all_int
  return gets.chomp.split.map{|v| v.to_i}
end

## start

A, B = gets_all_int

# sockets = A * n - (n - 1)

taps = 0
0.upto(B) do |n|
  if n == 0
    sockets = 1
  else
    sockets = A * n - (n - 1)
  end
  dputs "sockets = #{sockets}, n=#{n}"
  if sockets >= B
    taps = n
    break
  end
end

puts taps