# coding: utf-8
# lang: Ruby(2.3.3)
# submission # - User: herp_sy
# https://atcoder.jp/contests/
# ------------------------------------------------------------

a,b = gets.split(' ').map(&:to_i)

cable = 1
ans = 0
while cable < b
	ans += 1
	cable += (a - 1)
end

p ans
