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

start = 1

for i in range(20):

    if start >= B:

        print(i)

        break

    start += A - 1



import sys

sys.setrecursionlimit(10**6)

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

cnt = 0

tmp = A

while True:

    cnt += 1

    if tmp >= B:

        break

    else:

        tmp += (A - 1) 



if B ==1:

    print((0))

else:

    print(cnt)
A, B = list(map(int, input().split()))
start = 1
for i in range(20):
    if start >= B:
        print(i)
        break
    start += A - 1

import sys

sys.setrecursionlimit(10**6)
A, B = list(map(int, input().split()))
cnt = 0
tmp = A
while True:
    cnt += 1
    if tmp >= B:
        break
    else:
        tmp += A - 1
if B == 1:
    print((0))
else:
    print(cnt)

+import sys + +sys.setrecursionlimit(10**6) -start = 1 -for i in range(20): -    if start >= B: -        print(i) +cnt = 0 +tmp = A +while True: +    cnt += 1 +    if tmp >= B: -    start += A - 1 +    else: +        tmp += A - 1 +if B == 1: +    print((0)) +else: +    print(cnt)