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 = 910;
bool mark[MAXN], edge[MAXN][MAXN];
vector<int> a[MAXN], vert[MAXN], e[MAXN];
vector<pair<int, int> > barg, ans;
int d[MAXN], up[MAXN], c[MAXN];
void dfs(int v, int p) {
  mark[v] = true;
  up[v] = d[v];
  for (auto u : a[v]) {
    if (!mark[u]) {
      d[u] = d[v] + 1;
      dfs(u, v);
      up[v] = min(up[v], up[u]);
    } else if (u != p) {
      up[v] = min(up[v], d[u]);
    }
  }
}
int lstcol = 0;
void dfs2(int v) {
  mark[v] = true;
  vert[c[v]].push_back(v);
  for (auto u : a[v]) {
    if (!mark[u]) {
      if (up[u] == d[u]) {
        c[u] = ++lstcol;
        e[c[v]].push_back(c[u]);
        e[c[u]].push_back(c[v]);
        dfs2(u);
      } else {
        c[u] = c[v];
        dfs2(u);
      }
    }
  }
}
int t = 0, st[MAXN];
void dfs3(int v) {
  st[v] = t++;
  mark[v] = true;
  if (e[v].size() == 1) {
    barg.push_back({st[v], v});
  }
  for (auto u : e[v]) {
    if (!mark[u]) {
      dfs3(u);
    }
  }
}
bool NA = false;
void addedge(int x, int y) {
  int v = vert[x][0], u = vert[y][0];
  if (!edge[v][u]) {
    ans.push_back({v, u});
    return;
  }
  if (vert[x].size() > 1) {
    ans.push_back({vert[x][1], u});
    return;
  }
  if (vert[y].size() > 1) {
    ans.push_back({v, vert[y][1]});
    return;
  }
  NA = true;
}
void build() {
  int n = barg.size();
  sort(barg.begin(), barg.end());
  for (int i = 0; i < n / 2; i++) {
    addedge(barg[i].second, barg[i + n / 2].second);
  }
  if (n % 2 == 1) addedge(barg[0].second, barg[n - 1].second);
}
int main() {
  int n, m;
  cin >> n >> m;
  for (int i = 0, x, y; i < m; i++) {
    cin >> x >> y;
    a[--x].push_back(--y);
    a[y].push_back(x);
    edge[x][y] = true;
    edge[y][x] = true;
  }
  dfs(0, -1);
  memset(mark, 0, sizeof mark);
  dfs2(0);
  memset(mark, 0, sizeof mark);
  dfs3(0);
  build();
  if (NA) {
    cout << -1 << endl;
    return 0;
  }
  cout << ans.size() << endl;
  for (int i = 0; i < ans.size(); i++) {
    cout << ans[i].first + 1 << ' ' << ans[i].second + 1 << endl;
  }
  return 0;
}