a, b = gets.split.map(&:to_f)
tap = 1
socket = 0
while socket < b do
  if tap == 1
    socket += a
  else
    if socket + a >= b
      socket += a
    else
      socket += a-1
      tap += 1
    end
  end
end
puts tap
