eolymp
bolt
Try our new interface for solving problems

Nadan

Zaman məhdudiyyəti 1 saniyə
Yaddaşı istafadə məhdudiyyəti 128 MiB

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.

Giriş verilənləri

The first line contains a positive integer k (100 ≤ k ≤ 10^6), number from the task description.

The second line contains a positive integer n (1 ≤ n ≤ 100), number from the task description.

Çıxış verilənləri

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.

Nümunə

Giriş verilənləri #1
100
5
Çıxış verilənləri #1
10
30
20
5
35
Giriş verilənləri #2
200
1
Çıxış verilənləri #2
200
Giriş verilənləri #3
100
4
Çıxış verilənləri #3
21
36
12
31
Mənbə 2018 COCI Round 1, October 20