Min Sum Construction#12262

Min Sum Construction

1 second
256 megabytes
Medium

Given four integers n,\ a,\ b,\ c, construct an array of length such that:

It is guaranteed that a solution exists for every test case. If multiple answers exist, print any of them.

Input

The first line contains a single integer (1 \le t \le 10^4) — the number of test cases.

Each test case consists of one line containing four integers n,\ a,\ b,\ c (1 \le n \le 10^5, 1 \le a,\ c \le 10^{10}, 1 \le b \le n).

It is guaranteed that \sum n \le 10^5 over all test cases.

Output

For each test case, output any valid array .

Note that it must hold that 1 \le A_i \le n for all .

Examples

Example 1

Loading
Loading

Note

In the first test case, A = [2, 3, 3]:

The sum is \sum_{i=1}^n A_i = 2+3+3 = 8, which matches a = 8.

\sum_{i=1}^n \min(A_i,\ b) = 2+3+3 = 8, which matches c = 8.

Thus, the array is valid.

Scoring

  1. Subtask ( points): n = 3

  2. Subtask ( points): a = c

  3. Subtask ( points): 1 \le \sum n \le 100

  4. Subtask ( points): 1 \le \sum n \le 10^4

  5. Subtask ( points): No additional constraints