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>
#include <bits/stdc++.h>
using namespace std;
mt19937 gene(233);
inline char GET_CHAR() {
  const int maxn = 131072;
  static char buf[maxn], *p1 = buf, *p2 = buf;
  return p1 == p2 && (p2 = (p1 = buf) + fread(buf, 1, maxn, stdin), p1 == p2)
             ? EOF
             : *p1++;
}
inline int getInt() {
  int res(0);
  char c = getchar();
  while (c < '0') c = getchar();
  while (c >= '0') {
    res = res * 10 + (c - '0');
    c = getchar();
  }
  return res;
}
inline long long fastpo(long long x, long long n, long long mod) {
  long long res(1);
  while (n) {
    if (n & 1) {
      res = res * (long long)x % mod;
    }
    x = x * (long long)x % mod;
    n /= 2;
  }
  return res;
}
inline string itoa(int x, int width = 0) {
  string res;
  if (x == 0) res.push_back('0');
  while (x) {
    res.push_back('0' + x % 10);
    x /= 10;
  }
  while ((int)res.size() < width) res.push_back('0');
  reverse(res.begin(), res.end());
  return res;
}
template <const long long mod>
struct MI {
  long long a;
  MI operator+(const MI& b) {
    MI res{a + b.a};
    if (res.a >= mod) res.a -= mod;
    return res;
  }
  MI operator-(const MI& b) {
    MI res{a - b.a};
    if (res.a <= 0) res.a += mod;
    return res;
  }
  MI operator*(const MI& b) { return MI{a * b.a % mod}; }
  MI operator/(const MI& b) { return MI{a * fastpo(b.a, mod - 2, mod) % mod}; }
};
const int N = 100033;
const int LOG = 20;
const int mod = 1e9 + 7;
const int inf = 1e9 + 7;
int n, m;
int dx[4] = {1, 0, -1, 0};
int dy[4] = {0, 1, 0, -1};
int dep[N], vst[N];
set<pair<int, int> > s[N];
vector<int> e[N];
bool ans[N];
int anc[N], o[N];
int cur[N];
int insert[N];
bool dfs(int v) {
  vst[v] = true;
  insert[v] = true;
  for (int y : e[v]) {
    if (!vst[y]) {
      dep[y] = dep[v] + 1;
      if (!dfs(y)) return false;
    } else {
      if (insert[y] == false || dep[y] > dep[v]) {
        return false;
      }
    }
  }
  insert[v] = false;
  return true;
}
int _ = 0;
void d1(int v) {
  vst[v] = true;
  cur[dep[v]] = v;
  for (int y : e[v]) {
    if (!vst[y]) {
      dep[y] = dep[v] + 1;
      d1(y);
      if (s[v].size() < s[y].size()) {
        swap(s[v], s[y]);
      }
      for (auto tmp : s[y]) {
        s[v].insert(tmp);
      }
      s[y].clear();
    } else {
      s[v].insert(make_pair(dep[y], ++_));
    }
  }
  while (!s[v].empty() && s[v].rbegin()->first >= dep[v]) {
    s[v].erase(*s[v].rbegin());
  }
  anc[v] = -1;
  if (s[v].size() >= 2) {
    ans[v] = false;
  } else if (s[v].size() == 1) {
    anc[v] = cur[s[v].begin()->first];
  }
}
void d2(int v) {
  vst[v] = true;
  if (anc[v] != -1) {
    ans[v] &= ans[anc[v]];
  }
  for (int y : e[v]) {
    if (!vst[y]) {
      dep[y] = dep[v] + 1;
      d2(y);
    }
  }
}
void run() {
  scanf("%d%d", &n, &m);
  for (int i = 1; i <= m; i++) {
    int x, y;
    scanf("%d%d", &x, &y);
    e[x].push_back(y);
  }
  for (int i = 1; i <= n; i++) {
    o[i] = i;
    swap(o[i], o[gene() % i + 1]);
  }
  int LIM = 100;
  for (int j = 1; j <= min(LIM, n); j++) {
    int v = o[j];
    fill(insert + 1, insert + 1 + n, false);
    fill(vst + 1, vst + 1 + n, false);
    dep[v] = 1;
    if (dfs(v)) {
      fill(vst + 1, vst + 1 + n, false);
      fill(ans + 1, ans + 1 + n, true);
      d1(v);
      fill(vst + 1, vst + 1 + n, false);
      d2(v);
      int cnt = 0;
      for (int i = 1; i <= n; i++) cnt += ans[i];
      for (int i = 1; i <= n; i++) s[i].clear();
      if (cnt * 5 < n) {
        printf("-1\n");
        return;
      } else {
        for (int i = 1; i <= n; i++) {
          if (ans[i]) {
            cnt--;
            printf("%d%c", i, cnt ? ' ' : '\n');
          }
        }
        return;
      }
    }
  }
  printf("-1\n");
}
int main() {
  int t;
  scanf("%d", &t);
  for (int qq = 1; qq <= t; qq++) {
    run();
    for (int i = 1; i <= n; i++) e[i].clear();
  }
}
