import sys

from collections import defaultdict

readline = sys.stdin.buffer.readline

#sys.setrecursionlimit(10**8)





def geta(fn=lambda s: s.decode()):

    return list(map(fn, readline().split()))





def gete(fn=lambda s: s.decode()):

    return fn(readline().rstrip())





def main():

    a, b = geta(int)



    if b == 1:

        print((0))

        exit()



    n = 1

    while a * n - n + 1 < b:

        n += 1



    print(n)





if __name__ == "__main__":

    main()
import sys

from collections import defaultdict

readline = sys.stdin.buffer.readline

#sys.setrecursionlimit(10**8)





def geta(fn=lambda s: s.decode()):

    return list(map(fn, readline().split()))





def gete(fn=lambda s: s.decode()):

    return fn(readline().rstrip())





def main():

    a, b = geta(int)



    tot = 1

    ans = 0

    while tot < b:

        ans += 1

        tot += a - 1



    print(ans)





if __name__ == "__main__":

    main()
import sys
from collections import defaultdict

readline = sys.stdin.buffer.readline
# sys.setrecursionlimit(10**8)
def geta(fn=lambda s: s.decode()):
    return list(map(fn, readline().split()))


def gete(fn=lambda s: s.decode()):
    return fn(readline().rstrip())


def main():
    a, b = geta(int)
    if b == 1:
        print((0))
        exit()
    n = 1
    while a * n - n + 1 < b:
        n += 1
    print(n)


if __name__ == "__main__":
    main()

import sys
from collections import defaultdict

readline = sys.stdin.buffer.readline
# sys.setrecursionlimit(10**8)
def geta(fn=lambda s: s.decode()):
    return list(map(fn, readline().split()))


def gete(fn=lambda s: s.decode()):
    return fn(readline().rstrip())


def main():
    a, b = geta(int)
    tot = 1
    ans = 0
    while tot < b:
        ans += 1
        tot += a - 1
    print(ans)


if __name__ == "__main__":
    main()

-    if b == 1: -        print((0)) -        exit() -    n = 1 -    while a * n - n + 1 < b: -        n += 1 -    print(n) +    tot = 1 +    ans = 0 +    while tot < b: +        ans += 1 +        tot += a - 1 +    print(ans)