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



ans = 0

k = 1

while k < B:

    ans += 1

    k += A - 1

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

k=1

for i in range(1000):

    if k>=b:

        print(i)

        break

    k = k - 1 + a

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

a, b = list(map(int, input().split()))
k = 1
for i in range(1000):
    if k >= b:
        print(i)
        break
    k = k - 1 + a

-A, B = list(map(int, input().split())) -ans = 0 +a, b = list(map(int, input().split())) -while k < B: -    ans += 1 -    k += A - 1 -print(ans) +for i in range(1000): +    if k >= b: +        print(i) +        break +    k = k - 1 + a