A,B =gets.chomp.split.map(&:to_i)

if B == 1
  puts 0
elsif A == 2
  puts (B-1)
else
  n = B/(A-1)
  remainder = B%(A-1)

  if remainder == 1 || remainder == 0
    puts n
  else
    puts (n+1)
  end
end