input = gets.chomp
arr = input.split(' ')
a = arr[0].to_i
b = arr[1].to_i

### plag_num = 1
### count = a
###
### while true
###   break if count >= b
###   count += (a - 1)
###   plag_num += 1
### end
###
### p plag_num

ans = 0
outlet = 1
while outlet < b
  outlet -= 1
  outlet += a
  ans += 1
end

p ans