W = int(input()) D = int(input()) for i in range(D, 0, -1): amount = W // i**2 W -= amount print(amount)