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 G = 1000 * 100 + 10;
bool visited[G], boreshi[G];
vector<int> e[G], bnam[G], ans;
int h[G], up[G], st[G], mj[G], to[G], x, y;
void dfs(int v) {
  int c = 0;
  visited[v] = 1;
  up[v] = h[v];
  st[y++] = v;
  for (int i = 0; i < e[v].size(); i++) {
    int u = e[v][i];
    if (!h[u]) {
      h[u] = h[v] + 1;
      dfs(u);
      up[v] = min(up[v], up[u]);
    } else if (h[u] != (h[v] - 1) || c++) {
      up[v] = min(up[v], h[u]);
    }
  }
  if (h[v] == up[v]) {
    to[x] = st[y - 1];
    do {
      mj[st[--y]] = x;
    } while (st[y] != v);
    x++;
  }
}
int main() {
  int n, m;
  cin >> n >> m;
  for (int i = 0; i < m; i++) {
    int a, b;
    cin >> a >> b;
    a--;
    b--;
    e[a].push_back(b);
    e[b].push_back(a);
  }
  h[0] = 1;
  dfs(0);
  if (n <= 2) {
    cout << -1;
    return 0;
  }
  for (int i = 0; i < n; i++) {
    for (int j = 0; j < e[i].size(); j++) {
      int u = e[i][j];
      if (mj[i] != mj[u]) bnam[mj[i]].push_back(mj[u]);
    }
  }
  int leaf = 0;
  for (int i = 0; i < x; i++) {
    if (bnam[i].size() == 1) {
      leaf++;
      ans.push_back(to[i] + 1);
    }
  }
  int anss = (leaf + 1) / 2;
  cout << anss << '\n';
  if (leaf % 2) anss--;
  for (int i = anss; i < leaf; ++i)
    cout << ans[i] << " " << ans[i - anss] << '\n';
  return 0;
}