Problem: James Bond has a new plan for catching his enemy. There are some cities and directed roads between them, such that it is possible to travel between any two cities using these roads. When the enemy appears in some city, Bond knows her next destination but has no idea which path she will choose to move there. 

The city a is called interesting, if for each city b, there is exactly one simple path from a to b. By a simple path, we understand a sequence of distinct cities, such that for every two neighboring cities, there exists a directed road from the first to the second city. 

Bond's enemy is the mistress of escapes, so only the chase started in an interesting city gives the possibility of catching her. James wants to arrange his people in such cities. However, if there are not enough interesting cities, the whole action doesn't make sense since Bond's people may wait too long for the enemy.

You are responsible for finding all the interesting cities or saying that there is not enough of them. By not enough, James means strictly less than 20\% of all cities. 

Input

The first line contains one integer t (1 ≤ t ≤ 2 000) — the number of test cases. Each test case is described as follows:

The first line contains two integers n and m (1 ≤ n ≤ 10^5, 0 ≤ m ≤ 2 ⋅ 10^5) — the number of cities and roads between them. Each of the following m lines contains two integers u, v (u ≠ v; 1 ≤ u, v ≤ n), which denote that there is a directed road from u to v.

You can assume that between each ordered pair of cities there is at most one road. The sum of n over all test cases doesn't exceed 10^5, and the sum of m doesn't exceed 2 ⋅ 10^5.

Output

If strictly less than 20\% of all cities are interesting, print -1. Otherwise, let k be the number of interesting cities. Print k distinct integers in increasing order — the indices of interesting cities.

Example

Input


4
3 3
1 2
2 3
3 1
3 6
1 2
2 1
2 3
3 2
1 3
3 1
7 10
1 2
2 3
3 1
1 4
4 5
5 1
4 6
6 7
7 4
6 1
6 8
1 2
2 3
3 4
4 5
5 6
6 1
6 2
5 1


Output


1 2 3 
-1
1 2 3 5 
-1

Note

In all drawings, if a city is colored green, then it is interesting; otherwise, it is colored red.

In the first sample, each city is interesting. 

<image>

In the second sample, no city is interesting. 

<image>

In the third sample, cities 1, 2, 3 and 5 are interesting. 

<image>

In the last sample, only the city 1 is interesting. It is strictly less than 20\% of all cities, so the answer is -1. 

<image>

Solution (in CPP):

Solution:
#include <bits/stdc++.h>
using namespace std;
long long ksm(long long a, long long b) {
  if (!b) return 1;
  long long ns = ksm(a, b >> 1);
  ns = ns * ns % 998244353;
  if (b & 1) ns = ns * a % 998244353;
  return ns;
}
int t;
int fa[100010];
int dfn[100010], low[100010], sz[100010];
int dfcnt;
vector<int> eg[100010];
int n, m;
int ans = 0;
void dfs1(int a) {
  dfn[a] = ++dfcnt;
  sz[a] = 1;
  for (auto v : eg[a]) {
    if (dfn[v]) continue;
    fa[v] = a;
    dfs1(v);
    sz[a] += sz[v];
  }
}
int fe[100010][2];
bool check(int v) {
  for (int i = 1; i <= n; i++) fa[i] = 0, sz[i] = 0, dfn[i] = 0;
  dfcnt = 0;
  dfs1(v);
  for (int i = 1; i <= n; i++)
    for (auto v : eg[i]) {
      if (fa[v] == i) continue;
      if (dfn[i] >= dfn[v] && dfn[i] < dfn[v] + sz[v]) continue;
      return 0;
    }
  for (int i = 1; i <= n; i++)
    if (!dfn[i]) return 0;
  return 1;
}
int tp[100010], to[100010];
int bk[100010];
void ins(int id, int t) {
  if (t <= fe[id][0])
    fe[id][1] = fe[id][0], fe[id][0] = t;
  else if (t <= fe[id][1])
    fe[id][1] = t;
}
void dfs2(int a) {
  fe[a][0] = fe[a][1] = dfn[a];
  low[a] = dfn[a];
  for (auto v : eg[a])
    if (dfn[v] < dfn[a]) {
      low[a] = min(low[a], dfn[v]);
      ins(a, dfn[v]);
    } else {
      dfs2(v);
      low[a] = min(low[a], low[v]);
      for (int j = 0; j < 2; j++) ins(a, fe[v][j]);
    }
}
void work(int pl) {
  for (int i = 1; i <= n; i++) bk[dfn[i]] = i;
  dfs2(pl);
  for (int i = 1; i <= n; i++) {
    int id = bk[i];
    tp[id] = 1;
    if (fe[id][1] < dfn[id]) tp[id] = 0;
    if (fe[id][0] < dfn[id] && !tp[bk[fe[id][0]]]) tp[id] = 0;
  }
  for (int i = 1; i <= n; i++) {
    int id = bk[i];
    if (i == 1)
      to[id] = 1;
    else {
      to[id] = 0;
      int e = bk[fe[id][0]];
      if (to[e]) to[id] = 1;
    }
  }
}
int main() {
  int t;
  cin >> t;
  while (t--) {
    scanf("%d%d", &n, &m);
    for (int i = 1; i <= n; i++) eg[i].clear();
    for (int i = 1; i <= m; i++) {
      int u, v;
      scanf("%d%d", &u, &v);
      eg[u].push_back(v);
    }
    int pl = 0, fl = 0;
    for (int t = 0; t < 80; t++) {
      pl = (rand() % 32768) * 32768 + rand() % 32768;
      pl = pl % n + 1;
      if (check(pl)) {
        fl = 1;
        break;
      }
    }
    if (!fl)
      cout << -1 << endl;
    else {
      work(pl);
      int ans = 0;
      for (int i = 1; i <= n; i++)
        if (tp[i] && to[i]) ans++;
      if (ans * 5 < n)
        cout << -1 << endl;
      else {
        for (int i = 1; i <= n; i++)
          if (tp[i] && to[i]) {
            printf("%d ", i);
          }
        printf("\n");
      }
    }
  }
  return 0;
}