You have a sequence $a$ of $N$ integers between $0$ and $K$ inclusive. $M$ segments are given, where $i$th segment is $[l_i,r_i]$. We want $\sum_{j=l_i}^{r_i}a_j=K$ to satisfy for every segment. Determine whether there exists such sequence $a$.
Each test data contains one or more test cases. The first line contains an integer $T$ — the number of test cases for this input file.
First line of each test case contains $3$ integers $N$, $M$, $K$.
$i$-th of the next $M$ lines contain two integers $l_i$ and $r_i$: left and right end of $i$-th segment.
For each test case, if a sequence that satisfies the condition exists, output the elements of the sequence. In case of multiple answers you may output any of them.
If no valid sequence exists, output a single integer $-1$.