# coding: utf-8

import sys

a,b = list(map(int,input().split()))

ans = 0

tap = 1

if(b==1):

    print((0))

    sys.exit()

while(1):

    tap += a-1

    ans+=1

    if(tap>=b):

        print(ans)

        break
a,b= list(map(int,input().split()))

tap=1

ans=0

while tap<b:

    tap+=a-1

    ans+=1

print(ans)
# coding: utf-8
import sys

a, b = list(map(int, input().split()))
ans = 0
tap = 1
if b == 1:
    print((0))
    sys.exit()
while 1:
    tap += a - 1
    ans += 1
    if tap >= b:
        print(ans)
        break

a, b = list(map(int, input().split()))
tap = 1
ans = 0
while tap < b:
    tap += a - 1
    ans += 1
print(ans)

-# coding: utf-8 -import sys - +tap = 1 -tap = 1 -if b == 1: -    print((0)) -    sys.exit() -while 1: +while tap < b: -    if tap >= b: -        print(ans) -        break +print(ans)