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