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



n = 0

while a*n-(n-1) < b:

    n += 1



print(n)

def main():

    # n = int(input())

    n, k = list(map(int, input().split()))

    # h = list(map(int, input().split()))

    # s = input()



    ans = 0

    while True:

        if (n - 1) * ans + 1 >= k:

            print(ans)

            break

        ans += 1





if __name__ == '__main__':

    main()

a, b = list(map(int, input().split()))
n = 0
while a * n - (n - 1) < b:
    n += 1
print(n)

def main():
    # n = int(input())
    n, k = list(map(int, input().split()))
    # h = list(map(int, input().split()))
    # s = input()
    ans = 0
    while True:
        if (n - 1) * ans + 1 >= k:
            print(ans)
            break
        ans += 1


if __name__ == "__main__":
    main()

-a, b = list(map(int, input().split())) -n = 0 -while a * n - (n - 1) < b: -    n += 1 -print(n) +def main(): +    # n = int(input()) +    n, k = list(map(int, input().split())) +    # h = list(map(int, input().split())) +    # s = input() +    ans = 0 +    while True: +        if (n - 1) * ans + 1 >= k: +            print(ans) +            break +        ans += 1 + + +if __name__ == "__main__": +    main()