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 GCC optimize("Ofast,unroll-loops,fast-math")
using namespace std;
long long poww(long long a, long long b, long long md) {
  return (!b ? 1
             : (b & 1 ? a * poww(a * a % md, b / 2, md) % md
                      : poww(a * a % md, b / 2, md) % md));
}
const int maxn = 1000 * 100 + 5;
const long long inf = 9223372036854775807;
const long long mod = 1e9 + 7;
int n, m, mark[maxn], dp[maxn], h[maxn], is[maxn], par[maxn], c[maxn],
    cnt = 1, mxc, me[905][905], d[maxn], mk[905][905], st[maxn];
vector<int> adj[maxn], mo[maxn], g[maxn], t;
pair<int, int> e[maxn];
void dfs2(int v) {
  mark[v] = 1;
  st[v] = cnt;
  cnt++;
  for (auto u : g[v]) {
    if (!mark[u]) dfs2(u);
  }
}
void sfd(int v) {
  mark[v] = 1;
  mxc = max(mxc, cnt);
  c[v] = cnt;
  mo[c[v]].push_back(v);
  for (auto u : adj[v]) {
    if (!mark[u]) {
      if (dp[u] > h[v]) cnt = mxc + 1;
      sfd(u);
      cnt = c[v];
    }
  }
}
void dfs(int v) {
  mark[v] = 1;
  for (auto u : adj[v]) {
    if (!mark[u]) {
      h[u] = h[v] + 1;
      par[u] = v;
      dfs(u);
      dp[v] = min(dp[v], dp[u]);
    } else if (u != par[v]) {
      dp[v] = min(dp[v], h[u]);
    }
  }
}
void print(int a, int b) {
  for (auto u : mo[a]) {
    for (auto v : mo[b]) {
      if (!mk[u][v]) {
        cout << u << " " << v << endl;
        return;
      }
    }
  }
}
bool cmp(int a, int b) { return st[a] < st[b]; }
int main() {
  ios::sync_with_stdio(false);
  cin.tie(0);
  cout.tie(0);
  ;
  cin >> n >> m;
  for (int i = 1; i <= m; i++) {
    int u, v;
    cin >> u >> v;
    adj[u].push_back(v);
    adj[v].push_back(u);
    e[i] = {u, v};
    mk[u][v] = 1;
    mk[v][u] = 1;
  }
  fill(dp, dp + n + 1, mod);
  for (int i = 1; i <= n; i++) {
    if (!mark[i]) {
      dfs(i);
    }
  }
  for (int i = 1; i <= m; i++) {
    if (e[i].first > e[i].second) swap(e[i].first, e[i].second);
    if (dp[e[i].second] > h[e[i].first]) is[i] = 1;
  }
  memset(mark, 0, sizeof mark);
  for (int i = 1; i <= n; i++) {
    if (!mark[i]) {
      sfd(i);
    }
  }
  for (int i = 1; i <= m; i++) {
    int u = c[e[i].first], v = c[e[i].second];
    if (u != v && !me[u][v] && !me[v][u]) {
      me[u][v] = me[v][u] = 1;
      g[u].push_back(v);
      g[v].push_back(u);
      d[v]++;
      d[u]++;
    }
  }
  for (int i = 1; i < maxn; i++) {
    if (d[i] == 1) {
      t.push_back(i);
    }
  }
  cnt = 1;
  memset(mark, 0, sizeof mark);
  for (int i = 1; i <= mxc; i++) {
    if (!mark[i] && d[i] != 1) {
      dfs2(i);
    }
  }
  sort((t).begin(), (t).end(), cmp);
  vector<int> T;
  for (int i = 0; i < (int)t.size() / 2; i++) {
    T.push_back(t[i]);
    T.push_back(t[i + (int)t.size() / 2]);
  }
  if ((int)t.size() % 2 == 1) {
    T.push_back(t[(long long)(t).size() / 2]);
    T.push_back(t.back());
  }
  t = T;
  if (n == 2) {
    cout << -1;
    return 0;
  }
  cout << ((long long)(t).size() + 1) / 2 << endl;
  if ((long long)(t).size() % 2 == 1) {
    int i = t.back(), j = t[(long long)(t).size() - 2];
    t.pop_back();
    print(i, j);
  }
  while (t.size()) {
    int i = t.back(), j = t[(long long)(t).size() - 2];
    print(i, j);
    t.pop_back();
    t.pop_back();
  }
}