N,K=map(int,input().split()) ans=[N//K]*K for i in range(N%K): ans[i]+=1 print(*ans)