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;
int n, m;
bool con[905][905];
struct Edge {
  int to, next;
} edge[200005];
int box[905], low[905], id[905], state[905];
vector<int> yy[905];
int color[905];
vector<pair<int, int> > bridge;
int cnt, node_num;
void add(int a, int b) {
  edge[cnt].to = b;
  edge[cnt].next = box[a];
  box[a] = cnt++;
}
void dfs(int u, int pre, int dep) {
  state[u] = 1;
  id[u] = low[u] = dep;
  bool flag = true;
  for (int i = box[u]; i != -1; i = edge[i].next) {
    int v = edge[i].to;
    if (v == pre && flag) {
      flag = false;
      continue;
    }
    if (state[v] == 1)
      low[u] = min(low[u], id[v]);
    else if (state[v] == 0) {
      dfs(v, u, dep + 1);
      low[u] = min(low[u], low[v]);
    }
    if (low[v] > id[u]) bridge.push_back(make_pair(u, v));
  }
  state[u] = 2;
}
void set_color(int u) {
  yy[color[u]].push_back(u);
  for (int i = box[u]; i != -1; i = edge[i].next) {
    int v = edge[i].to;
    if (color[v]) continue;
    if (low[v] > id[u]) {
      color[v] = ++node_num;
      yy[node_num].clear();
    } else
      color[v] = color[u];
    set_color(v);
  }
}
int du[905];
vector<pair<int, int> > ans;
bool vst[2 * 905];
bool find(int u, int v, int pre) {
  if (u == v) return true;
  for (int i = box[u]; i != -1; i = edge[i].next) {
    int nx = edge[i].to;
    if (nx == pre) continue;
    if (find(nx, v, u)) {
      vst[i] = vst[i ^ 1] = true;
      return true;
    }
  }
  return false;
}
bool ck() {
  memset(vst, 0, sizeof(vst));
  for (vector<pair<int, int> >::iterator it = ans.begin(); it != ans.end();
       it++)
    find(color[it->first], color[it->second], 0);
  for (int i = 0; i < cnt; i += 2)
    if (!vst[i]) return false;
  return true;
}
pair<int, int> x[905][905];
int main() {
  srand(time(0));
  scanf("%d%d", &n, &m);
  if (n == 2) {
    printf("-1");
    return 0;
  }
  cnt = 0;
  memset(box, -1, sizeof(box));
  memset(con, 0, sizeof(con));
  for (int i = 0; i < m; i++) {
    int u, v;
    scanf("%d%d", &u, &v);
    if (con[u][v]) {
      printf("-1\n");
      return 0;
    }
    con[u][v] = con[v][u] = true;
    add(u, v);
    add(v, u);
  }
  bridge.clear();
  memset(state, 0, sizeof(state));
  dfs(1, 0, 0);
  memset(color, 0, sizeof(color));
  yy[1].clear();
  color[1] = node_num = 1;
  set_color(1);
  if (node_num == 1) {
    printf("0\n");
    return 0;
  }
  memset(box, -1, sizeof(box));
  cnt = 0;
  memset(du, 0, sizeof(du));
  for (vector<pair<int, int> >::iterator it = bridge.begin();
       it != bridge.end(); it++) {
    int u = it->first, v = it->second;
    add(color[u], color[v]);
    add(color[v], color[u]);
    du[color[u]]++;
    du[color[v]]++;
  }
  for (int i = 1; i <= n; i++)
    for (int j = 1; j <= n; j++)
      if (color[i] != color[j] && !con[i][j])
        x[color[i]][color[j]] = make_pair(i, j);
  vector<int> leaves;
  for (int i = 1; i <= node_num; i++) {
    if (du[i] == 1) leaves.push_back(i);
  }
  int sz = (int)leaves.size();
  while (true) {
    ans.clear();
    for (int i = 1; i < sz; i += 2) {
      ans.push_back(x[leaves[i - 1]][leaves[i]]);
    }
    if (sz & 1) ans.push_back(x[leaves[0]][leaves[sz - 1]]);
    if (ck()) {
      printf("%d\n", (sz + 1) / 2);
      for (vector<pair<int, int> >::iterator it = ans.begin(); it != ans.end();
           it++)
        printf("%d %d\n", it->first, it->second);
      return 0;
    }
    random_shuffle(leaves.begin(), leaves.end());
  }
  return 0;
}