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

 

cnt = 0

tap = 0

for i in range(10000):

    if cnt >= b or b == 1:

        break

    if i == 0:

        cnt += a

    else:

        cnt += a-1

    tap += 1

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

if b == 1:

    print((0))

    exit(0)

for i in range(10000):

    if a + i * a - i >= b:

        print((1 + i))

        break
a, b = list(map(int, input().split()))
cnt = 0
tap = 0
for i in range(10000):
    if cnt >= b or b == 1:
        break
    if i == 0:
        cnt += a
    else:
        cnt += a - 1
    tap += 1
print(tap)

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

-cnt = 0 -tap = 0 +if b == 1: +    print((0)) +    exit(0) -    if cnt >= b or b == 1: +    if a + i * a - i >= b: +        print((1 + i)) -    if i == 0: -        cnt += a -    else: -        cnt += a - 1 -    tap += 1 -print(tap)