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

plug = 1

cnt = 0

for i in range(100):

  if plug < B:

    plug += A-1

    cnt +=1

    #print(cnt)

  else:

    break



print(cnt)
import math

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

soc= 1

tap=0

while(soc<B):

  soc-=1

  soc+=A

  tap+=1

print(tap)

#print(math.ceil((B-1)/(A-1)))
A, B = list(map(int, input().split()))
plug = 1
cnt = 0
for i in range(100):
    if plug < B:
        plug += A - 1
        cnt += 1
        # print(cnt)
    else:
        break
print(cnt)

import math

A, B = list(map(int, input().split()))
soc = 1
tap = 0
while soc < B:
    soc -= 1
    soc += A
    tap += 1
print(tap)
# print(math.ceil((B-1)/(A-1)))

+import math + -plug = 1 -cnt = 0 -for i in range(100): -    if plug < B: -        plug += A - 1 -        cnt += 1 -        # print(cnt) -    else: -        break -print(cnt) +soc = 1 +tap = 0 +while soc < B: +    soc -= 1 +    soc += A +    tap += 1 +print(tap) +# print(math.ceil((B-1)/(A-1)))