a,b = gets.chomp.split.map(&:to_i)
ans = 0
scnow = 0
9e9.times do |i|
	if b == 0 or b==1
      p 0
      break
    elsif scnow >= b
      p ans
      break
    else
      ans+=1
      scnow+=a-1
    end
end