import sys input = sys.stdin.readline A=int(input()) B=int(input()) if A!=1: x=B//(1-A) else: x=-B print(x)