2018 COCI Round #1, October 20
Alongside being a palindrome, Nadan is also a successful businessman who finances young software developers when they start working on their projects. This year, he decided to distribute k kunas (Croatian currency) to n projects in a way that each project gets at least one kuna and all projects get a different amounts of kunas. This will always be possible. Write a program which will, for a given n and k, find one possible distribution of k kunas to n projects.
The first line contains a positive integer k (100 ≤ k ≤
106), number from the task description.
The second line contains a positive integer n (1 ≤ n ≤ 100), number from the task description.
For a chosen money distribution, output the amount of money the first project will get in the first line,the amount of money the second project will get in the second line and so on until the n-th line where you should output the amount of money the n-th project will get.
10 30 20 5 35
21 36 12 31