line = readline
a = line.chomp.split(" ")[0].to_i
b = line.chomp.split(" ")[1].to_i

counter = 0
sum = 0

while counter < b
  if a == b
    sum = 1 
    break
  end

  if counter + 1 == b
    break
  end
  counter += a - 1
  sum += 1

end

p sum