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

a = input_lines[0]
output = input_lines[1]
nowCount = 0
count = 0
while  output > (nowCount + 1) 
    nowCount = nowCount + (a-1)
    count = count + 1
end

if output == 1
    puts 0
else 
    puts count
end