input_lines = gets.chop.split.map(&:to_i)

a = input_lines[0]
output = input_lines[1]

count = 0
count = output/(a-1)

if output%(a-1) > 1 
    count = count + 1
end

if output == 1
    puts 0
else 
    puts count
end