a, b = gets.split(" ").map(&:to_i)
 
if b == 1
    puts 0
elsif b <= a
    puts 1
else
    if (b - a) % (a - 1) == 0
        puts (b - a) / (a - 1) + 1
    else
        puts (b - a) / (a - 1) + 2
    end
end
