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 N = 9e2 + 5, Mod = 1e9 + 7, Lg = 27, P = 727, Sq = 350;
const long long Inf = 3e18 + 10;
bool Mark[N], Cut[N], E[N][N];
vector<int> A[N], B[N], CE, Cmp[N], Adj[N], Le;
int Par[N], Dp[N], H[N], Col[N], Find[N], D[N], Cnt = 1, n, m;
void PreDfs(int u) {
  Mark[u] = 1;
  for (int i = 0; i < (int)A[u].size(); i++) {
    int v = A[u][i];
    if (Mark[v]) {
      if (v ^ Par[u]) {
        Dp[u] = min(Dp[u], H[v]);
      }
    } else {
      Par[v] = u, H[v] = H[u] + 1;
      PreDfs(v);
      Dp[u] = min(Dp[u], Dp[v]);
    }
  }
  if (Dp[u] >= H[u]) {
    Cut[u] = 1;
  }
}
void Dfs(int u) {
  Col[u] = Cnt;
  for (int i = 0; i < (int)B[u].size(); i++) {
    int v = B[u][i];
    if (!Col[v]) {
      Dfs(v);
    }
  }
}
void Dfs2(int u, int par) {
  int Num = 0;
  for (int i = 0; i < (int)Adj[u].size(); i++) {
    if (Adj[u][i] != par) {
      Num++;
      Dfs2(Adj[u][i], u);
    }
  }
  if (!Num) {
    Le.push_back(u);
  }
}
int main() {
  memset(Dp, 63, sizeof(Dp));
  scanf("%d%d", &n, &m);
  for (int i = 1; i <= m; i++) {
    int x, y;
    scanf("%d%d", &x, &y);
    A[x].push_back(y), A[y].push_back(x);
    E[x][y] = E[y][x] = 1;
  }
  PreDfs(1);
  for (int i = 1; i <= n; i++) {
    for (int j = 0; j < (int)A[i].size(); j++) {
      if (H[i] < H[A[i][j]]) {
        continue;
      }
      if (Cut[i] && !(A[i][j] ^ Par[i])) {
        CE.push_back(i);
        continue;
      } else {
        B[i].push_back(A[i][j]);
        B[A[i][j]].push_back(i);
      }
    }
  }
  for (int i = 1; i <= n; i++) {
    if (!Col[i]) {
      Dfs(i);
      Find[Cnt] = i;
      Cnt++;
    }
    Cmp[Col[i]].push_back(i);
  }
  Cnt--;
  if (Cnt == 1) {
    printf("%d", 0);
    return 0;
  }
  if (Cnt == 2) {
    for (int i = 0; i < (int)Cmp[1].size(); i++) {
      for (int j = 0; j < (int)Cmp[2].size(); j++) {
        if (E[Cmp[1][i]][Cmp[2][j]]) {
          continue;
        }
        printf("%d\n%d %d", 1, Cmp[1][i], Cmp[2][j]);
        return 0;
      }
    }
    printf("%d", -1);
    return 0;
  }
  for (int i = 0; i < (int)CE.size(); i++) {
    int u = CE[i], v = Par[u];
    Adj[Col[u]].push_back(Col[v]);
    Adj[Col[v]].push_back(Col[u]);
  }
  int Best = 0;
  for (int i = 1; i <= Cnt; i++) {
    if (Adj[i].size() > 1) {
      Best = i;
    }
  }
  Dfs2(Best, Best);
  int T = (int)Le.size();
  printf("%d\n", (T + 1) / 2);
  T /= 2;
  for (int i = 0; i + T < (int)Le.size(); i++) {
    printf("%d %d\n", Find[Le[i]], Find[Le[i + T]]);
  }
  return 0;
}