a = int(input()) b = int(input()) if a == 1: print("a" * 100000) else: x = -b // (a - 1) print(x)