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;
void per() { cerr << endl; }
template <typename Head, typename... Tail>
void per(Head H, Tail... T) {
  cerr << H << ' ';
  per(T...);
}
template <class T>
bool uin(T& a, T b) {
  return a > b ? (a = b, true) : false;
}
template <class T>
bool uax(T& a, T b) {
  return a < b ? (a = b, true) : false;
}
template <class U, class V>
ostream& operator<<(ostream& out, const pair<U, V>& a) {
  return out << "(" << a.first << ", " << a.second << ")";
}
template <class U, class V>
istream& operator>>(istream& in, pair<U, V>& a) {
  return in >> a.first >> a.second;
}
template <typename W,
          typename T = typename enable_if<!is_same<W, string>::value,
                                          typename W::value_type>::type>
ostream& operator<<(ostream& out, const W& v) {
  out << "{ ";
  for (const auto& first : v) out << first << ", ";
  return out << '}';
}
template <class T>
void readArr(T from, T to) {
  for (auto i = from; i != to; ++i) cin >> *i;
}
mt19937 mrand(1337);
unsigned int myRand32() { return mrand() & (unsigned int)(-1); }
unsigned long long myRand64() {
  return ((unsigned long long)myRand32() << 32) ^ myRand32();
}
const int mod = 1000000007;
void add(int& a, int b) {
  a += b;
  if (a >= mod) a -= mod;
}
void dec(int& a, int b) {
  a -= b;
  if (a < 0) a += mod;
}
int mult(int a, int b) { return a * (long long)b % mod; }
int bp(int a, int b) {
  int res = 1;
  while (b > 0) {
    if (b & 1) res = mult(res, a);
    a = mult(a, a);
    b >>= 1;
  }
  return res;
}
int n, m;
vector<int> g[100007];
int was[100007];
int h[100007];
int tin[100007];
int tout[100007];
int tt = 0;
void dfs(int v, int hh = 0) {
  was[v] = 1;
  tin[v] = tt++;
  h[v] = hh;
  for (int to : g[v])
    if (!was[to]) {
      dfs(to, hh + 1);
    }
  tout[v] = tt++;
}
bool isPred(int a, int b) { return tin[a] <= tin[b] && tout[b] <= tout[a]; }
int dd[100007];
int dp[100007];
int bad[100007];
void go(int v) {
  dp[v] = dd[v];
  for (int to : g[v])
    if (h[to] == h[v] + 1) {
      go(to);
      dp[v] += dp[to];
    }
}
int jump[100007];
set<int> se[100007];
void kek(int v) {
  bad[v] = dp[v] >= 2;
  for (int to : g[v])
    if (h[to] == h[v] + 1) {
      kek(to);
      if (se[to].size() < se[v].size()) swap(se[to], se[v]);
      for (int first : se[to]) se[v].insert(first);
      se[v].erase(v);
    } else
      se[v].insert(to);
  if (se[v].size() == 1) jump[v] = *se[v].begin();
}
void kek2(int v) {
  if (dp[v] == 1 && bad[jump[v]]) bad[v] = 1;
  for (int to : g[v])
    if (h[to] == h[v] + 1) {
      kek2(to);
    }
}
void solve() {
  cin >> n >> m;
  for (int i = 0; i < n; ++i) g[i].clear(), se[i].clear();
  for (int i = 0; i < m; ++i) {
    int w1, w2;
    cin >> w1 >> w2;
    --w1;
    --w2;
    g[w1].push_back(w2);
  }
  int start = -1;
  for (int it = 0; it < 99; ++it) {
    int v = myRand32() % n;
    fill(was, was + n, 0);
    tt = 0;
    dfs(v);
    int ok = 1;
    for (int v = 0; v < n; ++v) {
      for (int to : g[v]) {
        if (!isPred(v, to) && !isPred(to, v)) ok = 0;
        if (h[v] + 1 < h[to]) ok = 0;
      }
    }
    if (ok) {
      start = v;
      break;
    }
  }
  if (start == -1) {
    cout << "-1\n";
    return;
  }
  fill(dd, dd + n, 0);
  fill(dp, dp + n, 0);
  fill(bad, bad + n, 0);
  for (int v = 0; v < n; ++v) {
    for (int to : g[v])
      if (h[v] > h[to]) {
        dd[v]++;
        dd[to]--;
      }
  }
  go(start);
  kek(start);
  kek2(start);
  for (int v = 0; v < n; ++v) {
  }
  vector<int> res;
  for (int v = 0; v < n; ++v)
    if (!bad[v]) res.push_back(v);
  if (res.size() * 5 < n) {
    cout << "-1\n";
  } else {
    for (int v : res) cout << v + 1 << ' ';
    cout << "\n";
  }
}
int main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  int tt;
  cin >> tt;
  while (tt--) {
    solve();
  }
}