W, D = [int(input()) for _ in range(2)] for d in range(D-1): W -= int(W/(D-d)**2) print(W)