a,b = gets.split(' ').map(&:to_i)
ans = b-a
count = 0
if ans <= 0
    puts '1'
else
    count = count+1
    ans = ans.divmod(a-1)
    count = count +ans[0]
    if ans[1] != 0
        count += 1
    end
    puts count
end
