def solve(): A=int(input()) B=int(input()) if A==1: return 0 else: return B//(1-A) print(solve())