A,B=list(map(int,input().split()))

cnt=0

num=1

while num<B:

    num+=(A-1)

    cnt+=1

    

print(cnt)
# coding: utf-8

import math

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



if a >= b:

    ans = 1

else:

    ans = 1

    ans += math.ceil((b-a)/(a-1))

if b == 1:

    ans = 0

print(ans)
A, B = list(map(int, input().split()))
cnt = 0
num = 1
while num < B:
    num += A - 1
    cnt += 1
print(cnt)

# coding: utf-8
import math

a, b = list(map(int, input().split()))
if a >= b:
    ans = 1
else:
    ans = 1
    ans += math.ceil((b - a) / (a - 1))
if b == 1:
    ans = 0
print(ans)

-A, B = list(map(int, input().split())) -cnt = 0 -num = 1 -while num < B: -    num += A - 1 -    cnt += 1 -print(cnt) +# coding: utf-8 +import math + +a, b = list(map(int, input().split())) +if a >= b: +    ans = 1 +else: +    ans = 1 +    ans += math.ceil((b - a) / (a - 1)) +if b == 1: +    ans = 0 +print(ans)