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 = 1e5 + 5;
int n, h[maxn], add[maxn], cmp, m, cnt, col[maxn], cur, dp[maxn], re, pr,
    mx[maxn];
vector<int> ad[maxn], lvs, w[maxn];
vector<pair<int, int> > e;
bool vis[maxn], is[1000][1000], chk[maxn];
void ade(int u, int v) {
  if (!is[w[u][0]][w[v][0]]) {
    e.push_back({w[u][0], w[v][0]});
    return;
  }
  if (!is[w[u][0]][w[v].back()]) {
    e.push_back({w[u][0], w[v].back()});
    return;
  }
  if (!is[w[u].back()][w[v][0]]) {
    e.push_back({w[u].back(), w[v][0]});
    return;
  }
  if (!is[w[u].back()][w[v].back()]) {
    e.push_back({w[u].back(), w[v].back()});
    return;
  }
  cout << -1;
  exit(0);
}
void dfs(int u, int d, int p) {
  vis[u] = true;
  dp[u] = d;
  h[u] = d;
  for (auto v : ad[u]) {
    if (!vis[v]) {
      dfs(v, d + 1, u);
      dp[u] = min(dp[u], dp[v]);
    } else if (v != p) {
      dp[u] = min(dp[u], h[v]);
    }
  }
}
void dfs2(int u) {
  vis[u] = true;
  w[col[u]].push_back(u);
  for (auto v : ad[u]) {
    if (!vis[v]) {
      if (dp[v] <= h[u]) {
        col[v] = col[u];
      } else {
        col[v] = cnt++;
        add[col[u]]++;
        add[col[v]]++;
      }
      dfs2(v);
    }
  }
}
void dfs3(int u) {
  vis[u] = true;
  if (!chk[col[u]] && add[col[u]] == 1) {
    lvs.push_back(col[u]);
    chk[col[u]] = 1;
  }
  for (auto v : ad[u]) {
    if (!vis[v]) {
      dfs3(v);
    }
  }
}
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(0);
  cin >> n >> m;
  while (m--) {
    int x, y;
    cin >> x >> y;
    ad[x].push_back(y);
    ad[y].push_back(x);
    is[x][y] = true;
    is[y][x] = true;
  }
  for (int i = 1; i < n + 1; ++i) {
    if (!vis[i]) {
      cmp++;
      if (pr) {
        e.push_back({pr, i});
      }
      pr = i;
      dfs(i, 0, -1);
    }
  }
  memset(vis, 0, sizeof vis);
  for (int i = 1; i < n + 1; ++i) {
    if (!vis[i]) {
      col[i] = cnt++;
      dfs2(i);
    }
  }
  memset(vis, 0, sizeof vis);
  for (int i = 1; i < n + 1; ++i) {
    if (!vis[i]) {
      dfs3(i);
      re += (lvs.size() + 1) / 2;
      for (int j = 0; j < lvs.size() / 2; ++j) {
        ade(lvs[j], lvs[lvs.size() / 2 + j]);
      }
      if (lvs.size() % 2) {
        ade(lvs[0], lvs[lvs.size() - 1]);
      }
      lvs.clear();
    }
  }
  cout << e.size() << '\n';
  for (auto u : e) {
    cout << u.first << ' ' << u.second << '\n';
  }
  return 0;
}