Sign permutation#12211

Sign permutation

2 seconds
256 megabytes
Medium

You're given three integers n, m, k. Your task is to construct a permutation of elements such that exactly numbers are negative and the sum of all elements is .

If such permutation does not exist, print .

Input

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

The only line of each test case contains three integers n, m, k (1 \le m \le n \le 10^6; -10^{12} \le k \le 10^{12}) — number of elements in the permutation, number of negative numbers, and the obtained sum.

It is guaranteed that the sum of all for all tests does not exceed 10^6.

Output

If such permutation exists, print \pm p_1, \pm p_2, ..., \pm p_n, otherwise print .

Examples

Example 1

Loading
Loading

Scoring

  1. Subtask ( points): (m=1).

  2. Subtask ( points): (m=2).

  3. Subtask ( points): (k=0).

  4. Subtask ( points): (1 \le n \le 3)

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

  6. Subtask ( points): It is guaranteed that such permutation exists.

  7. Subtask ( points): No additional constraints.