import sys

from pprint import pprint



def solve(a, b):

    ans = 0

    emp = 1

    while emp < b:

        emp += a - 1

        ans += 1

    print(ans)



if __name__ == '__main__':

  a, b = list(map(int, sys.stdin.readline().strip().split(" ")))

  solve(a, b)

import sys



A, B = list(map(int, sys.stdin.readline().split()))

print(((B - A - 1) // (A-1) + 2))
import sys
from pprint import pprint


def solve(a, b):
    ans = 0
    emp = 1
    while emp < b:
        emp += a - 1
        ans += 1
    print(ans)


if __name__ == "__main__":
    a, b = list(map(int, sys.stdin.readline().strip().split(" ")))
    solve(a, b)

import sys

A, B = list(map(int, sys.stdin.readline().split()))
print(((B - A - 1) // (A - 1) + 2))

-from pprint import pprint - -def solve(a, b): -    ans = 0 -    emp = 1 -    while emp < b: -        emp += a - 1 -        ans += 1 -    print(ans) - - -if __name__ == "__main__": -    a, b = list(map(int, sys.stdin.readline().strip().split(" "))) -    solve(a, b) +A, B = list(map(int, sys.stdin.readline().split())) +print(((B - A - 1) // (A - 1) + 2))