from collections import * from itertools import * from functools import * from heapq import * import sys,math input = sys.stdin.readline W = int(input()) D = int(input()) for i in range(D-1): W = W - (W//(D-i)**2) print(W)