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 long long maxn = 2e5 + 5;
const long long maxm = 2e5 + 5;
vector<long long> ger[maxm];
vector<pair<long long, long long> > gerr[maxm];
vector<pair<long long, long long> > yal;
long long timee[maxm];
bool viz[maxm];
bool isnb[maxm];
long long z[maxm];
long long par[maxm];
long long timeq;
long long moa[maxm];
long long mo;
bool chap[maxm];
vector<long long> ger2[maxn];
vector<pair<long long, long long> > ans;
void moaset(long long a) {
  long long v;
  if (viz[a]) return;
  viz[a] = 1;
  moa[a] = mo;
  for (long long i = 0; i < gerr[a].size(); i++) {
    v = gerr[a][i].first;
    if (isnb[gerr[a][i].second]) moaset(v);
  }
}
void tdfs(long long a) {
  timeq++;
  if (viz[a]) return;
  viz[a] = 1;
  timee[a] = timeq;
  long long v;
  for (long long i = 0; i < ger[a].size(); i++) {
    v = ger[a][i];
    if (!viz[v]) {
      par[v] = a;
    }
    tdfs(v);
  }
}
void zdfs(long long a) {
  if (viz[a]) return;
  viz[a] = 1;
  long long v;
  for (long long i = 0; i < ger[a].size(); i++) {
    v = ger[a][i];
    if (!viz[v]) {
      zdfs(v);
      z[a] += z[v];
    }
  }
}
pair<long long, long long> tamam(long long a) {
  viz[a] = 1;
  if (ger2[a].size() == 1) {
    return make_pair(a, 0);
  }
  long long v;
  vector<pair<long long, long long> > vec;
  vector<long long> vec2;
  pair<long long, long long> pp;
  for (long long i = 0; i < ger2[a].size(); i++) {
    v = ger2[a][i];
    if (!viz[v]) {
      pp = (tamam(v));
      if (pp.second == 0) {
        vec2.push_back(pp.first);
      } else {
        vec.push_back(pp);
      }
    }
  }
  if (vec.size() == 1 && vec2.size() == 0) {
    return vec[0];
  }
  for (long long i = 1; i < vec.size(); i += 2) {
    ans.push_back(make_pair(vec[i].first, vec[i - 1].first));
    vec[i].first = 0;
    vec[i - 1].first = 0;
    if (vec[i].second != 0) {
      vec2.push_back(vec[i].second);
    }
    if (vec[i - 1].second != 0) {
      vec2.push_back(vec[i - 1].second);
    }
  }
  if (vec.size() & 1) {
    ans.push_back(make_pair(vec.back().first, vec2.back()));
    vec2.pop_back();
    vec2.push_back(vec.back().second);
  }
  for (long long i = 1; i < vec2.size(); i += 2) {
    ans.push_back(make_pair(vec2[i], vec2[i - 1]));
  }
  if (vec2.size() & 1) {
    return make_pair(vec2.back(), 0);
  } else {
    pp = ans.back();
    ans.pop_back();
    return pp;
  }
}
int main() {
  long long n, m, v, u;
  cin >> n >> m;
  if (n == 2) {
    cout << -1;
    return 0;
  }
  for (long long i = 0; i < m; i++) {
    cin >> v >> u;
    yal.push_back(make_pair(u, v));
    ger[u].push_back(v);
    ger[v].push_back(u);
    gerr[u].push_back(make_pair(v, i));
    gerr[v].push_back(make_pair(u, i));
  }
  timeq = 0;
  tdfs(1);
  for (long long i = 0; i < m; i++) {
    u = yal[i].first;
    v = yal[i].second;
    if (par[u] != v && par[v] != u) {
      if (timee[u] > timee[v]) {
        z[u]++;
        z[v]--;
      } else {
        z[v]++;
        z[u]--;
      }
    }
  }
  memset(&viz[0], 0, maxn);
  zdfs(1);
  memset(&viz[0], 0, maxn);
  memset(&isnb[0], 1, maxn);
  for (long long i = 0; i < m; i++) {
    u = yal[i].first;
    v = yal[i].second;
    if (timee[u] > timee[v]) {
      swap(v, u);
    }
    if (par[v] == u) {
      if (z[v] == 0) {
        isnb[i] = 0;
      }
    }
  }
  for (long long i = 1; i <= n; i++) {
    mo = i;
    moaset(i);
  }
  for (long long i = 0; i < m; i++) {
    if (!isnb[i]) {
      ger2[moa[yal[i].first]].push_back(moa[yal[i].second]);
      ger2[moa[yal[i].second]].push_back(moa[yal[i].first]);
    }
  }
  vector<long long> mm;
  long long rot = -1, kr = 0;
  for (long long i = 1; i <= n; i++) {
    if (ger2[i].size() > 1) {
      rot = i;
      break;
    }
    if (ger2[i].size() > 0) {
      mm.push_back(i);
      kr++;
    }
  }
  if (rot == -1 && kr < 2) {
    if (ger2[rot].size() == 0) {
      cout << 0;
      return 0;
    }
    cout << -1;
    return 0;
  }
  if (rot == -1 && kr == 2) {
    cout << 1 << endl << endl << endl;
    v = 2;
    sort(ger[1].begin(), ger[1].end());
    for (long long i = 0; i < ger[1].size(); i) {
      if (ger[1][i] != v && moa[v] != moa[1]) {
        cout << 1 << ' ' << v;
        return 0;
      }
      if (ger[1][i] < v) {
        i++;
      } else
        v++;
    }
    while (v <= n) {
      if (moa[v] != moa[1]) {
        cout << 1 << ' ' << v;
        return 0;
      }
      v++;
    }
    return 0;
  }
  memset(&viz[0], 0, maxn);
  pair<long long, long long> pp = tamam(rot);
  if (pp.second == 0) {
    u = pp.first;
    if (par[u] != rot)
      ans.push_back(make_pair(pp.first, rot));
    else {
      ans.push_back(make_pair(u, 4));
    }
  } else
    ans.push_back(pp);
  cout << ans.size() << endl;
  ;
  for (long long i = 0; i < ans.size(); i++) {
    cout << ans[i].first << ' ' << ans[i].second << endl;
  }
}