=begin
a = gets.split("").map{|x| x.to_s}
b = gets.split("").map{|x| x.to_s}
count = 0
3.times do |i|
  if a[i] == b[i]
    count += 1
  end
end

p count
=end

a = gets.split(" ").map{|x| x.to_f}
if a[0] >= a[1]
  p 1
  exit()
end

a[1] -= (a[0] - 1) * 2
if(a[1] <= 0)
  p 2
  exit()
end

ans = 2
while true
  a[1] -= a[0] - 2
  ans += 1
  break if a[1] <= 0
end

p ans
