Problem: I have an undirected graph consisting of n nodes, numbered 1 through n. Each node has at most two incident edges. For each pair of nodes, there is at most an edge connecting them. No edge connects a node to itself.

I would like to create a new graph in such a way that: 

  * The new graph consists of the same number of nodes and edges as the old graph. 
  * The properties in the first paragraph still hold. 
  * For each two nodes u and v, if there is an edge connecting them in the old graph, there is no edge connecting them in the new graph. 



Help me construct the new graph, or tell me if it is impossible.

Input

The first line consists of two space-separated integers: n and m (1 ≤ m ≤ n ≤ 105), denoting the number of nodes and edges, respectively. Then m lines follow. Each of the m lines consists of two space-separated integers u and v (1 ≤ u, v ≤ n; u ≠ v), denoting an edge between nodes u and v.

Output

If it is not possible to construct a new graph with the mentioned properties, output a single line consisting of -1. Otherwise, output exactly m lines. Each line should contain a description of edge in the same way as used in the input format.

Examples

Input

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


Output

1 4
4 6
1 6
2 7
7 5
8 5
2 8


Input

3 2
1 2
2 3


Output

-1


Input

5 4
1 2
2 3
3 4
4 1


Output

1 3
3 5
5 2
2 4

Note

The old graph of the first example:

<image>

A possible new graph for the first example:

<image>

In the second example, we cannot create any new graph.

The old graph of the third example:

<image>

A possible new graph for the third example:

<image>

Solution (in CPP):

Solution:
#include <bits/stdc++.h>
using namespace std;
const int N = 1e5 + 5;
int n, m;
vector<vector<int>> adjList(N);
int arr[N];
vector<vector<int>> newAdjList(N);
unsigned long long int seed =
    chrono::high_resolution_clock::now().time_since_epoch().count();
mt19937 generator(seed);
void permuteArr(int nArr) {
  uniform_int_distribution<int> distribution(1, 6);
  for (int i = 0; i < nArr; i++) arr[i] = i;
  for (int i = 0; i < nArr; i++) {
    uniform_int_distribution<int> distribution(i, nArr - 1);
    int ind = distribution(generator);
    int tmp = arr[i];
    arr[i] = arr[ind];
    arr[ind] = tmp;
  }
}
void clearAdjList() {
  for (int i = 0; i < n; i++) adjList[i].clear();
}
void clearNewAdjList() {
  for (int i = 0; i < n; i++) newAdjList[i].clear();
}
bool isAdj(int u, int v) {
  bool retVal = false;
  if (u == v) retVal = true;
  for (int c : adjList[u]) {
    if (v == c) retVal = true;
  }
  return retVal;
}
bool randomizedSolution(int nArr, int m) {
  permuteArr(nArr);
  clearNewAdjList();
  queue<int> q;
  for (int i = 0; i < nArr; i++) q.push(arr[i]);
  int erst = q.front();
  q.pop();
  int curr = erst;
  for (int i = 0; i < nArr - 1 && i < m; i++) {
    int loopCounter = 0;
    while (loopCounter < q.size()) {
      if (isAdj(curr, q.front())) {
        q.push(q.front());
        q.pop();
        loopCounter++;
      } else
        break;
    }
    if (loopCounter == q.size()) return false;
    newAdjList[curr].push_back(q.front());
    newAdjList[q.front()].push_back(curr);
    curr = q.front();
    q.pop();
  }
  if (m == nArr) {
    if (isAdj(curr, erst))
      return false;
    else {
      newAdjList[curr].push_back(erst);
      newAdjList[erst].push_back(curr);
      return true;
    }
  } else
    return true;
}
void printSol(int nArr, int m) {
  for (int i = 0; i < n; i++) {
    for (int j : newAdjList[i]) {
      if (i < j) cout << i + 1 << ' ' << j + 1 << endl;
    }
  }
}
int main() {
  cin >> n >> m;
  int a, b;
  clearAdjList();
  for (int i = 0; i < m; i++) {
    cin >> a >> b;
    a--;
    b--;
    adjList[a].push_back(b);
    adjList[b].push_back(a);
  }
  bool sol = false;
  for (int i = 0; i < 200; i++) {
    sol = randomizedSolution(n, m);
    if (sol) break;
  }
  if (sol)
    printSol(n, m);
  else
    cout << -1 << endl;
  return 0;
}