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>
#pragma comment(linker, "/STACK:100000000")
using namespace std;
vector<pair<int, int> > v[100100];
int tin[100100];
int tout[100100];
int fup[100100];
int ttt = 0;
bool vis[100100];
bool br[100100];
void dfs(int s, int lst = -1) {
  tin[s] = ++ttt;
  fup[s] = tin[s];
  vis[s] = true;
  for (int i = 0; i < (int)(v[s]).size(); i++) {
    int nxt = v[s][i].first;
    if (nxt == lst) continue;
    if (!vis[nxt]) dfs(nxt, s);
    fup[s] = min(fup[s], fup[nxt]);
    if (fup[nxt] > tin[s]) br[v[s][i].second] = true;
  }
  tout[s] = ++ttt;
}
int cid[100100];
vector<int> comp[100100];
void go(int s, int c) {
  vis[s] = true;
  cid[s] = c;
  comp[c].push_back(s);
  for (int i = 0; i < (int)(v[s]).size(); i++) {
    int nxt = v[s][i].first;
    int b = v[s][i].second;
    if (vis[nxt] || br[b]) continue;
    go(v[s][i].first, c);
  }
}
int matrix[999][999];
int matrix2[999][999];
int ord[100100];
int cntnum = 0;
bool vis2[100100];
void go2(int s) {
  vis[s] = true;
  if (!vis2[cid[s]]) ord[cntnum++] = cid[s], vis2[cid[s]] = true;
  for (int i = 0; i < (int)(v[s]).size(); i++) {
    int nxt = v[s][i].first;
    if (cid[nxt] != cid[s]) {
      matrix2[cid[nxt]][cid[s]] = 1;
      matrix2[cid[s]][cid[nxt]] = 1;
    }
    if (!vis[nxt]) go2(nxt);
  }
}
int main() {
  int n;
  scanf("%d", &n);
  if (n == 2) {
    printf("-1");
    return 0;
  }
  int m;
  scanf("%d", &m);
  for (int i = 0; i < m; i++) {
    int a, b;
    scanf("%d %d", &a, &b);
    v[a].push_back(make_pair(b, i));
    v[b].push_back(make_pair(a, i));
    matrix[a][b] = matrix[b][a] = 1;
  }
  dfs(1);
  int cnt = 0;
  memset(vis, 0, sizeof(vis));
  for (int i = 1; i <= n; i++) {
    if (!vis[i]) go(i, cnt++);
  }
  if (cnt == 1) {
    printf("0");
    return 0;
  }
  if (cnt == 2) {
    for (int i = 1; i <= n; i++) {
      for (int j = 1; j <= n; j++) {
        if (cid[i] != cid[j] && !matrix[i][j]) {
          printf("1\n");
          printf("%d %d\n", i, j);
          return 0;
        }
      }
    }
  }
  int t = 0;
  memset(vis, 0, sizeof(vis));
  go2(1);
  vector<int> wtf;
  for (int i = 0; i < cnt; i++) {
    int idx = ord[i];
    int xxx = 0;
    for (int j = 0; j < cnt; j++) {
      if (matrix2[idx][j] == 1) xxx++;
    }
    if (xxx == 1) wtf.push_back(idx);
  }
  printf("%d\n", ((int)(wtf).size() + 1) / 2);
  for (int i = 0; i < ((int)(wtf).size() + 1) / 2; i++) {
    int c1 = wtf[i];
    int c2 = wtf[(i + (int)(wtf).size() / 2) % (int)(wtf).size()];
    int a = -1, b = -1;
    for (int j = 0; j < (int)(comp[c1]).size(); j++) {
      for (int k = 0; k < (int)(comp[c2]).size(); k++) {
        if (!matrix[comp[c1][j]][comp[c2][k]]) {
          a = comp[c1][j];
          b = comp[c2][k];
          j = 1e9;
          k = 1e9;
          break;
        }
      }
    }
    if (a == -1 || b == -1) assert(0);
    printf("%d %d\n", a, b);
  }
  return 0;
}