#!/usr/bin/env python3

import sys





def solve(A: int, B: int):

    p = 1

    ans = 0

    while True:

        if p >= B:

            print(ans)

            break

        p -= 1

        p += A

        ans += 1

    return





# Generated by 1.1.7.1 https://github.com/kyuridenamida/atcoder-tools  (tips: You use the default template now. You can remove this line by using your custom template)

def main():

    def iterate_tokens():

        for line in sys.stdin:

            for word in line.split():

                yield word

    tokens = iterate_tokens()

    A = int(next(tokens))  # type: int

    B = int(next(tokens))  # type: int

    solve(A, B)



if __name__ == '__main__':

    main()

#!/usr/bin/env python3

import sys





def solve(A: int, B: int):

    t = 1

    ans = 0

    while True:

        if t >= B:

            print(ans)

            break

        t += A-1

        ans += 1

    return





# Generated by 1.1.7.1 https://github.com/kyuridenamida/atcoder-tools  (tips: You use the default template now. You can remove this line by using your custom template)

def main():

    def iterate_tokens():

        for line in sys.stdin:

            for word in line.split():

                yield word

    tokens = iterate_tokens()

    A = int(next(tokens))  # type: int

    B = int(next(tokens))  # type: int

    solve(A, B)



if __name__ == '__main__':

    main()

#!/usr/bin/env python3
import sys


def solve(A: int, B: int):
    p = 1
    ans = 0
    while True:
        if p >= B:
            print(ans)
            break
        p -= 1
        p += A
        ans += 1
    return


# Generated by 1.1.7.1 https://github.com/kyuridenamida/atcoder-tools  (tips: You use the default template now. You can remove this line by using your custom template)
def main():
    def iterate_tokens():
        for line in sys.stdin:
            for word in line.split():
                yield word

    tokens = iterate_tokens()
    A = int(next(tokens))  # type: int
    B = int(next(tokens))  # type: int
    solve(A, B)


if __name__ == "__main__":
    main()

#!/usr/bin/env python3
import sys


def solve(A: int, B: int):
    t = 1
    ans = 0
    while True:
        if t >= B:
            print(ans)
            break
        t += A - 1
        ans += 1
    return


# Generated by 1.1.7.1 https://github.com/kyuridenamida/atcoder-tools  (tips: You use the default template now. You can remove this line by using your custom template)
def main():
    def iterate_tokens():
        for line in sys.stdin:
            for word in line.split():
                yield word

    tokens = iterate_tokens()
    A = int(next(tokens))  # type: int
    B = int(next(tokens))  # type: int
    solve(A, B)


if __name__ == "__main__":
    main()

-    p = 1 +    t = 1 -        if p >= B: +        if t >= B: -        p -= 1 -        p += A +        t += A - 1