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 + 10;
vector<int> a[MAXN];
bool mark[MAXN], is[MAXN], mark2[MAXN];
int parent[MAXN], mn[MAXN], d[MAXN], cnt[MAXN], di[MAXN], st[MAXN], cnt2[MAXN],
    t, total;
vector<int> ver;
vector<pair<int, int> > ans;
map<pair<int, int>, int> mp;
bool cmp(int x, int y) { return st[x] < st[y]; }
void dfs_p(int v, int par) {
  parent[v] = par;
  mark[v] = true;
  mn[v] = d[v];
  st[v] = t++;
  for (auto u : a[v]) {
    if (u == par) continue;
    if (mark[u]) {
      mn[v] = min(mn[v], d[u]);
      continue;
    }
    d[u] = d[v] + 1;
    dfs_p(u, v);
    if (mn[u] == d[v] + 1)
      cnt2[v]++;
    else
      cnt2[v] += cnt2[u];
    if (cnt[u] > 0) di[v]++;
    cnt[v] += cnt[u];
    mn[v] = min(mn[v], mn[u]);
  }
  if (mn[v] == d[v]) {
    mark2[v] = true;
    cnt[v]++;
    total++;
  }
}
bool add(int v, int u) {
  if (mp[{v, u}] == 0) {
    mp[{v, u}] = mp[{u, v}] = true;
    ans.push_back({v, u});
    return true;
  }
  for (auto u2 : a[v]) {
    if (mark2[u2] == false) {
      mp[{u2, u}] = mp[{u, u2}] = 1;
      ans.push_back({u2, u});
      return true;
    }
  }
  for (auto u2 : a[u]) {
    if (mark2[u2] == false) {
      mp[{v, u2}] = mp[{u2, v}] = 1;
      ans.push_back({v, u2});
      return true;
    }
  }
  return false;
}
int main() {
  ios::sync_with_stdio(false);
  cin.tie(0);
  int n, m;
  cin >> n >> m;
  for (int i = 0; i < m; i++) {
    int x, y;
    cin >> x >> y;
    x--;
    y--;
    a[x].push_back(y);
    a[y].push_back(x);
    mp[{x, y}] = mp[{y, x}] = 1;
  }
  dfs_p(0, -1);
  for (int i = 0; i < n; i++)
    if (mark2[i] and di[i] == 0) ver.push_back(i);
  if (di[0] == 1 and cnt2[0] == 1) ver.push_back(0);
  if (ver.size() == 1) {
    return cout << 0, 0;
  }
  sort(ver.begin(), ver.end(), cmp);
  int sz = ver.size();
  for (int i = 0; i < (sz + 1) / 2; i++) {
    bool is = add(ver[i], ver[i + sz / 2]);
    if (is == false) return cout << -1, 0;
  }
  cout << ans.size() << '\n';
  for (auto u : ans) cout << u.first + 1 << ' ' << u.second + 1 << '\n';
  return 0;
}