Problem: The Berland capital (as you very well know) contains n junctions, some pairs of which are connected by two-way roads. Unfortunately, the number of traffic jams in the capital has increased dramatically, that's why it was decided to build several new roads. Every road should connect two junctions. 

The city administration noticed that in the cities of all the developed countries between any two roads one can drive along at least two paths so that the paths don't share any roads (but they may share the same junction). The administration decided to add the minimal number of roads so that this rules was fulfilled in the Berland capital as well. In the city road network should exist no more than one road between every pair of junctions before or after the reform.

Input

The first input line contains a pair of integers n, m (2 ≤ n ≤ 900, 1 ≤ m ≤ 100000), where n is the number of junctions and m is the number of roads. Each of the following m lines contains a description of a road that is given by the numbers of the connected junctions ai, bi (1 ≤ ai, bi ≤ n, ai ≠ bi). The junctions are numbered from 1 to n. It is possible to reach any junction of the city from any other one moving along roads.

Output

On the first line print t — the number of added roads. Then on t lines print the descriptions of the added roads in the format of the input data. You can use any order of printing the roads themselves as well as the junctions linked by every road. If there are several solutions to that problem, print any of them.

If the capital doesn't need the reform, print the single number 0.

If there's no solution, print the single number -1.

Examples

Input

4 3
1 2
2 3
3 4


Output

1
1 4


Input

4 4
1 2
2 3
2 4
3 4


Output

1
1 3

Solution (in CPP):

Solution:
#include <bits/stdc++.h>
using namespace std;
const int maxN = 900 + 10;
int n, m, backE[maxN], par[maxN], moal[maxN], x;
vector<int> adj[maxN], adj2[maxN], leaf, mol[maxN];
vector<pair<int, int> > edg;
bool mark[maxN], markEdg[maxN][maxN];
void Dfs2(int v) {
  mark[v] = true;
  for (int i = 0; i < (int)adj2[v].size(); i++) {
    int u = adj2[v][i];
    if (!mark[u]) Dfs2(u);
  }
  if ((int)adj2[v].size() == 1) leaf.push_back(v);
  return;
}
void Dfs(int v) {
  mark[v] = true;
  for (int i = 0; i < (int)adj[v].size(); i++) {
    int u = adj[v][i];
    if (!mark[u]) {
      par[u] = v;
      Dfs(u);
      backE[v] += backE[u];
    } else if (u != par[v] && !markEdg[v][u]) {
      markEdg[v][u] = true;
      markEdg[u][v] = true;
      backE[v]++;
      backE[u]--;
    }
  }
  return;
}
void MoalDfs(int v) {
  mark[v] = true;
  moal[v] = x;
  mol[x].push_back(v);
  for (int i = 0; i < (int)adj[v].size(); i++) {
    int u = adj[v][i];
    if (!mark[u] && !markEdg[v][u]) MoalDfs(u);
  }
  return;
}
void MakeTree() {
  Dfs(0);
  for (int i = 0; i < n; i++) {
    mark[i] = false;
    for (int j = 0; j < n; j++) markEdg[i][j] = 0;
  }
  for (int i = 1; i < n; i++) {
    if (backE[i] <= 0) {
      edg.push_back({i, par[i]});
      markEdg[i][par[i]] = true;
      markEdg[par[i]][i] = true;
    }
  }
  for (int i = 0; i < n; i++) {
    if (!mark[i]) {
      MoalDfs(i);
      x++;
    }
  }
  for (int i = 0; i < n; i++) mark[i] = false;
  for (int i = 0; i < (int)edg.size(); i++) {
    int u = moal[edg[i].first];
    int v = moal[edg[i].second];
    adj2[v].push_back(u);
    adj2[u].push_back(v);
  }
  return;
}
int main() {
  cin >> n >> m;
  if (n == 2) {
    cout << -1;
    return 0;
  }
  for (int i = 0; i < m; i++) {
    int v, u;
    cin >> u >> v;
    u--;
    v--;
    adj[u].push_back(v);
    adj[v].push_back(u);
  }
  MakeTree();
  int s = 0;
  for (int i = 0; i < x; i++)
    if ((int)adj2[i].size() > 1) s = i;
  Dfs2(s);
  int ans = (int)leaf.size();
  cout << (ans + 1) / 2 << endl;
  ans /= 2;
  vector<pair<int, int> > Got;
  for (int i = 0; i < ans; i++) Got.push_back({leaf[i], leaf[i + ans]});
  if ((int)leaf.size() % 2 == 1)
    Got.push_back({leaf[ans * 2 - 1], leaf[ans * 2]});
  for (int i = 0; i < (int)Got.size(); i++) {
    int a = Got[i].first;
    int b = Got[i].second;
    if ((int)mol[a].size() > (int)mol[b].size()) swap(a, b);
    cout << mol[a][0] + 1 << ' ';
    int y = 0;
    while (markEdg[mol[a][0]][mol[b][y]]) y++;
    cout << mol[b][y] + 1 << endl;
  }
  return 0;
}