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;
template <class T>
void _R(T &x) {
  cin >> x;
}
void _R(int &x) { scanf("%d", &x); }
void _R(int64_t &x) { scanf("%lld", &x); }
void _R(double &x) { scanf("%lf", &x); }
void _R(char &x) { scanf(" %c", &x); }
void _R(char *x) { scanf("%s", x); }
void R() {}
template <class T, class... U>
void R(T &head, U &...tail) {
  _R(head);
  R(tail...);
}
template <class T>
void _W(const T &x) {
  cout << x;
}
void _W(const int &x) { printf("%d", x); }
void _W(const int64_t &x) { printf("%lld", x); }
void _W(const double &x) { printf("%.16f", x); }
void _W(const char &x) { putchar(x); }
void _W(const char *x) { printf("%s", x); }
template <class T, class U>
void _W(const pair<T, U> &x) {
  _W(x.first);
  putchar(' ');
  _W(x.second);
}
template <class T>
void _W(const vector<T> &x) {
  for (auto i = x.begin(); i != x.end(); _W(*i++))
    if (i != x.cbegin()) putchar(' ');
}
void W() {}
template <class T, class... U>
void W(const T &head, const U &...tail) {
  _W(head);
  putchar(sizeof...(tail) ? ' ' : '\n');
  W(tail...);
}
int MOD = 1e9 + 7;
void ADD(long long &x, long long v) {
  x = (x + v) % MOD;
  if (x < 0) x += MOD;
}
const int SIZE = 1 << 20;
const int AA = 100;
vector<int> e[SIZE];
int u[SIZE], tt, in_queue[SIZE], back[SIZE];
bool dfs0(int x) {
  back[x] = 0;
  u[x] = tt;
  in_queue[x] = tt;
  for (int y : e[x]) {
    if (u[y] == tt) {
      if (in_queue[y] != tt) return 0;
    } else {
      if (!dfs0(y)) return 0;
    }
  }
  in_queue[x] = 0;
  return 1;
}
struct BIT2 {
  long long _d[SIZE];
  int _n;
  void init(int __n) {
    _n = __n;
    memset(_d, 0, sizeof(long long) * (_n + 1));
  }
  void ins(int x, long long v) {
    for (; x; x -= x & -x) _d[x] += v;
  }
  void ins_range(int x, int y, long long v) {
    ins(y, v);
    if (x > 1) ins(x - 1, -v);
  }
  long long qq(int x) {
    long long res = 0;
    if (x <= 0 || x > _n) return 0;
    for (; x <= _n; x += x & -x) res += _d[x];
    return res;
  }
} bit, bit2;
int dep[SIZE];
void dfs_back(int x, int lv) {
  u[x] = tt;
  dep[x] = lv;
  for (int y : e[x]) {
    if (u[y] == tt) {
      bit.ins_range(dep[y] + 1, lv, y);
      bit2.ins_range(dep[y] + 1, lv, 1);
    } else {
      dfs_back(y, lv + 1);
    }
  }
  int y = bit.qq(lv);
  int num = bit2.qq(lv);
  if (num > 1)
    back[x] = -1;
  else {
    back[x] = y;
  }
  bit.ins_range(lv, lv, -y);
  bit2.ins_range(lv, lv, -num);
}
bool test_root(int x) {
  tt++;
  return dfs0(x);
}
int _p[SIZE];
long long my_rand() { return ((long long)rand() << 16) ^ rand(); }
int an[SIZE], an_cnt, visited[SIZE];
void dfs(int x, int rt) {
  visited[x] = tt;
  if (x == rt) {
    u[x] = tt;
    an[an_cnt++] = x;
  } else {
    if (back[x] != -1 && u[back[x]] == tt) {
      u[x] = tt;
      an[an_cnt++] = x;
    }
  }
  for (int y : e[x]) {
    if (visited[y] != tt) dfs(y, rt);
  }
}
bool solve() {
  int n, m;
  R(n, m);
  for (int i = 0; i < (n); ++i) _p[i] = i + 1;
  for (int i = (1); i < (n); ++i) {
    int nxt = my_rand() % (i + 1);
    if (nxt != i) swap(_p[i], _p[nxt]);
  }
  for (int i = (1); i <= (n); ++i) e[i].clear();
  for (int i = 0; i < (m); ++i) {
    int x, y;
    R(x, y);
    e[x].emplace_back(y);
  }
  int rt = -1;
  for (int i = 0; i < (min(n, AA)); ++i) {
    if (test_root(_p[i])) {
      rt = _p[i];
      break;
    }
  }
  if (rt == -1) return 0;
  bit.init(n);
  bit2.init(n);
  tt++;
  dfs_back(rt, 1);
  ;
  an_cnt = 0;
  tt++;
  dfs(rt, rt);
  if (an_cnt * 5 >= n) {
    sort(an, an + an_cnt);
    W(vector<int>(an, an + an_cnt));
    return 1;
  }
  return 0;
}
int main() {
  srand(514);
  int ___T;
  scanf("%d", &___T);
  for (int cs = 1; cs <= ___T; cs++) {
    if (!solve()) W(-1);
  }
  return 0;
}