from collections import * from itertools import * from functools import * from heapq import * import sys,math input = sys.stdin.readline A = int(input()) B = int(input()) if A==1: print(1) else: print(-B//(A-1))