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;
int read() {
  int x = 0;
  bool flg = false;
  char ch = getchar();
  for (; !isdigit(ch); ch = getchar())
    if (ch == '-') flg = true;
  for (; isdigit(ch); ch = getchar()) x = (x << 3) + (x << 1) + (ch ^ 48);
  return flg ? -x : x;
}
unsigned getrand() {
  static unsigned sd = time(0);
  return sd ^= sd >> 13, sd ^= sd << 28, sd ^= sd >> 24, sd ^= sd << 7;
}
const int INF = 1e9;
int n, m;
vector<int> e[100010];
bool inq[100010], vis[100010];
bool dfs0(int x) {
  inq[x] = vis[x] = 1;
  for (const int &y : e[x]) {
    if (vis[y] && !inq[y]) return 0;
    if (!vis[y] && !dfs0(y)) return 0;
  }
  inq[x] = 0;
  return 1;
}
int lk[100010];
bool ok[100010];
inline void check(pair<int, int> &x, const pair<int, int> &y) {
  if (y.first < x.first)
    x.second = x.first, x.first = y.first;
  else if (y.first < x.second)
    x.second = y.first;
  if (y.second < x.first)
    x.second = x.first, x.first = y.second;
  else if (y.second < x.second)
    x.second = y.second;
}
inline void check(pair<int, int> &x, const int &y) {
  if (y < x.first)
    x.second = x.first, x.first = y;
  else if (y < x.second)
    x.second = y;
}
int dep[100010];
void dfs1(int x, int d) {
  dep[x] = d;
  vis[x] = 1;
  for (const int &y : e[x])
    if (!vis[y]) dfs1(y, d + 1);
}
pair<int, int> dfs2(int x) {
  vis[x] = 1;
  ok[x] = 1, lk[x] = -1;
  pair<int, int> z(INF, INF);
  for (const int &y : e[x]) {
    if (vis[y])
      check(z, dep[y]);
    else {
      check(z, dfs2(y));
    }
  }
  assert(z.first < dep[x]);
  if (z.second < dep[x])
    ok[x] = 0;
  else
    lk[x] = z.first;
  return z;
}
int stk[100010], top;
vector<int> S;
void dfs3(int x) {
  stk[++top] = x;
  vis[x] = 1;
  if (~lk[x]) ok[x] = ok[stk[lk[x]]];
  if (ok[x]) S.push_back(x);
  for (const int &y : e[x])
    if (!vis[y]) dfs3(y);
  --top;
}
void check(int x) {
  for (int i(1); i <= int(n); i++) vis[i] = 0;
  dfs1(x, 1);
  ok[x] = 1, lk[x] = -1;
  for (int i(1); i <= int(n); i++) vis[i] = 0;
  vis[x] = 1;
  for (const int &y : e[x]) dfs2(y);
  for (int i(1); i <= int(n); i++) vis[i] = 0;
  S.clear();
  top = 0;
  dfs3(x);
  if (S.size() * 5 < n)
    puts("-1");
  else {
    sort((S).begin(), (S).end());
    for (int x : S) printf("%d ", x);
    puts("");
  }
}
void solve() {
  n = read(), m = read();
  for (int i(1); i <= int(n); i++) e[i].clear();
  while (m--) {
    int u = read(), v = read();
    e[u].push_back(v);
  }
  for (int T(1); T <= int(100); T++) {
    int x = getrand() % n + 1;
    for (int i(1); i <= int(n); i++) inq[i] = vis[i] = 0;
    if (dfs0(x) == 0) continue;
    check(x);
    return;
  }
  puts("-1");
}
int main() {
  for (int T = read(); T--;) solve();
  return 0;
}