line = gets.chomp.split(" ").map(&:to_i)
a = line[0]
b = line[1]

total = 0
available_plug = 0
while available_plug < b
    available_plug += a
    available_plug -= 1 if total != 0
    total += 1
end

puts total
