import sys input = sys.stdin.readline N,K=list(map(int,input().split())) A=[N//K]*K for i in range(N%K): A[i]+=1 print(*A)