Codeforces Round 216 (Div. 2)
B
Valera and Contest
Codeforces
1400
原题
← AC →
翻译中…

Valera loves to participate in competitions. Especially in programming contests. Today he has participated in the contest with his team, consisting of $*n*$ students (including Valera). This contest was an individual competition, so each student in the team solved problems individually.

翻译中…

After the contest was over, Valera was interested in results. He found out that:

翻译中…
  • each student in the team scored at least $*l*$ points and at most $*r*$ points;
  • in total, all members of the team scored exactly $*s*_{*all*}$ points;
  • the total score of the $*k*$ members of the team who scored the most points is equal to exactly $*s*_{*k*}$; more formally, if $*a*_{1}, *a*_{2}, ..., *a*_{*n*}$ is the sequence of points earned by the team of students in the non-increasing order $(*a*_{1} ≥ *a*_{2} ≥ ... ≥ *a*_{*n*})$, then $*s*_{*k*} = *a*_{1} + *a*_{2} + ... + *a*_{*k*}$.
翻译中…

However, Valera did not find out exactly how many points each of $*n*$ students scored. Valera asked you to recover any distribution of scores between the students of the team, such that all the conditions above are met.

翻译中…

Input

翻译中…

The first line of the input contains exactly six integers $*n*, *k*, *l*, *r*, *s*_{*all*}, *s*_{*k*}$ ($1 ≤ *n*, *k*, *l*, *r* ≤ 1000$; $*l* ≤ *r*$; $*k* ≤ *n*$; $1 ≤ *s*_{*k*} ≤ *s*_{*all*} ≤ 10^{6}$).

翻译中…

It's guaranteed that the input is such that the answer exists.

翻译中…

Output

翻译中…

Print exactly $*n*$ integers $*a*_{1}, *a*_{2}, ..., *a*_{*n*}$ — the number of points each student scored. If there are multiple solutions, you can print any of them. You can print the distribution of points in any order.

翻译中…

样例

Input #1
5 3 1 3 13 9
Output #1
2 3 2 3 3
InputCopy OutputCopy
Input #2
5 3 1 3 15 9
Output #2
3 3 3 3 3
InputCopy OutputCopy
题目信息
题号
369B
时间限制
1 s
内存限制
256 MB
标签
构造
模拟
数学

题面与样例版权归 Codeforces 及出题人所有;中文翻译由 AI 生成(CI 管线),如有出入请以原文为准。