#SDNU1257. Problem E. SDNU ACM/ICPC TEAM

Problem E. SDNU ACM/ICPC TEAM

Description

Lulichuan is the captain of SDNU ACM/ICPC TEAM, he have many team members, Their ability has a sequence from 11 to NN, now , lulichuan want to labeled them from 11 to NN in this way

a.a. Two member have different label

b.b. The labeling satisfies several constrains like "The member labeled with xx is lower than the one labeled with yy”.

Format

Input

The first line is TT, TT is TestCase(0<T<=1000)(0 < T <= 1000)

The first line of each testcase is two number N,M(0<500<n,0<M<100000)N, M(0 < 500 < n, 0 < M < 100000)

The next MM line each contain two integers xx and yy indicating the member labeled with xx must be lower than the one labeled with yy. (1x,yN)(1 ≤ x, y ≤ N)

Output

For each test case output on a single line the member' ability from label 11 to label NN. If several solutions exist, you should output the one with the lowest ability for label 11, then with the lowest ability for label 22 and so on... If no solution exists, output 1-1 instead.

Samples

5
4 0

4 1
1 1

4 2
1 2
2 1

4 1
2 1

4 1
3 2
1 2 3 4
-1
-1
2 1 3 4
1 3 2 4