A - Grapes Editorial /

Time Limit: 2 sec / Memory Limit: 1024 MiB

配点 : 100 点

問題文

1 から N までの番号がついた N 人の人がいます。

M 粒のぶどうがあります。これらを次のようにして N 人に配ります。

  • 人 1,2,\dots,N の順に 1 粒ずつ配る。途中でぶどうがなくなったらその時点で終了する。
  • 人 N に配った後もまだぶどうが残っている場合は、人 1 に戻って再び順番に配る。これをぶどうがなくなるまで繰り返す。

各人が何粒のぶどうをもらうかを求めてください。

制約

  • 1 \leq N \leq 100
  • 1 \leq M \leq 10000
  • 入力はすべて整数

入力

入力は以下の形式で標準入力から与えられる。

N M

出力

N 行出力せよ。 i 行目には人 i がもらうぶどうの粒数を出力せよ。


入力例 1

3 5

出力例 1

2
2
1

5 粒のぶどうを人 1,2,3,1,2 の順に 1 粒ずつ配ります。


入力例 2

4 1

出力例 2

1
0
0
0

1 粒ももらえない人がいる可能性もあります。


入力例 3

12 3456

出力例 3

288
288
288
288
288
288
288
288
288
288
288
288

全員が同じ粒数もらう可能性もあります。

Score : 100 points

Problem Statement

There are N people numbered from 1 to N.

There are M grapes. They will be distributed to the N people as follows.

  • Give one grape each to persons 1,2,\dots,N in this order. If the grapes run out midway, the distribution ends at that point.
  • If there are still grapes remaining after giving to person N, go back to person 1 and distribute in order again. Repeat this until the grapes run out.

Find how many grapes each person receives.

Constraints

  • 1 \leq N \leq 100
  • 1 \leq M \leq 10000
  • All input values are integers.

Input

The input is given from Standard Input in the following format:

N M

Output

Output N lines. The i-th line should contain the number of grapes person i receives.


Sample Input 1

3 5

Sample Output 1

2
2
1

The five grapes are given one at a time to persons 1,2,3,1,2 in this order.


Sample Input 2

4 1

Sample Output 2

1
0
0
0

There may be people who receive no grape.


Sample Input 3

12 3456

Sample Output 3

288
288
288
288
288
288
288
288
288
288
288
288

Everyone may receive the same number of grapes.