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