w = int(input()) d = int(input()) for i in range(d, 0, -1): a = int(w / (i*i)) w -= a print(a)