$debug = false
flag = ARGV.shift
if flag == "-d"
  $debug = true
end

def dputs str
  p str if $debug
end

def max(n, m)
  if n > m
    return n
  else
    return m
  end
end

def min(n, m)
  if n < m
    return n
  else
    return m
  end
end

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