a, b = int(input()), int(input()) print(b//(1-a) if a != 1 else 0)