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 + 50;
const int maxx = 1000 * 100 + 10;
vector<pair<int, int> > adj[maxn];
vector<int> adj2[maxn], coll[maxn], vecb;
bool mark[maxn], markB[maxx], mark2[maxn], mark3[maxn];
int h[maxn], dp[maxn], par[maxn], col[maxn], x, nm[maxn], tyb, P;
void dfsBor(int v) {
  mark2[v] = true;
  dp[v] = h[v];
  for (int i = 0; i < (int)adj[v].size(); i++) {
    int u = adj[v][i].first;
    if (!mark2[u]) {
      par[u] = v, h[u] = h[v] + 1;
      dfsBor(u);
      dp[v] = min(dp[v], dp[u]);
      if (dp[u] > h[v]) {
        markB[adj[v][i].second] = true;
        tyb++;
      }
    } else if (u != par[v])
      dp[v] = min(dp[v], h[u]);
  }
}
void dfsrang(int v) {
  mark[v] = true;
  col[v] = x;
  coll[x].push_back(v);
  for (int i = 0; i < (int)adj[v].size(); i++) {
    int u = adj[v][i].first, ed = adj[v][i].second;
    if (!mark[u]) {
      if (!markB[ed]) dfsrang(u);
    }
  }
}
void dfsnewtree(int v) {
  mark3[v] = true;
  for (int i = 0; i < (int)adj[v].size(); i++) {
    int u = adj[v][i].first, ed = adj[v][i].second;
    if (!mark3[u]) {
      if (markB[ed]) {
        adj2[col[u]].push_back(col[v]);
        adj2[col[v]].push_back(col[u]);
        nm[col[u]] = u;
        nm[col[v]] = v;
      }
      dfsnewtree(u);
    }
  }
}
void dfsbarg(int v) {
  mark3[v] = true;
  if ((int)adj2[v].size() == 1) vecb.push_back(v);
  for (int i = 0; i < (int)adj2[v].size(); i++) {
    if (!mark3[adj2[v][i]]) dfsbarg(adj2[v][i]);
  }
}
int main() {
  int n, m;
  cin >> n >> m;
  for (int i = 0; i < m; i++) {
    int a, b;
    cin >> a >> b;
    a--, b--;
    adj[a].push_back(make_pair(b, i)), adj[b].push_back(make_pair(a, i));
  }
  if (n == 2) {
    cout << "-1" << endl;
    return 0;
  }
  dfsBor(0);
  for (int i = 0; i < n; i++) {
    if (!mark[i]) {
      x++;
      dfsrang(i);
    }
  }
  dfsnewtree(0);
  int ind = 0, t = 0;
  for (int i = 0; i < n + 1; i++) {
    if ((int)adj2[i].size() > 1) {
      ind = i;
    }
    if ((int)adj2[i].size() == 1) t++;
  }
  fill(mark3, mark3 + maxn, 0);
  dfsbarg(ind);
  if (tyb == 1) {
    cout << 1 << endl;
    for (int i = 0; i < (int)coll[1].size(); i++) {
      for (int j = 0; j < (int)coll[2].size(); j++) {
        bool flag = 0;
        for (int r = 0; r < (int)adj[coll[1][i]].size(); r++) {
          if (adj[coll[1][i]][r].first == coll[2][j]) {
            flag = 1;
          }
        }
        if (!flag) {
          cout << coll[1][i] + 1 << " " << coll[2][j] + 1 << endl;
          return 0;
        }
      }
    }
    return 0;
  }
  cout << (t + 1) / 2 << endl;
  for (int i = 0; i < (int)vecb.size(); i++) {
    int g = i + (t / 2);
    if (g < (int)vecb.size()) {
      P++;
      cout << nm[vecb[i]] + 1 << " " << nm[vecb[g]] + 1 << endl;
    }
  }
  if (t % 2 && P < ((t + 1) / 2))
    cout << nm[vecb[t - 2]] + 1 << " " << nm[vecb[t - 1]] + 1 << endl;
  return 0;
}