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 N = 990, INF = 0, MOD = 0;
int n, m, mark[N], up[N], h[N], ch[N];
vector<pair<int, int> > ans;
vector<int> adj[N], M[N], adj2[N], lv;
void DFS(int v, int p) {
  mark[v] = 1, up[v] = h[v], ch[v] = v;
  ;
  for (auto u : adj[v]) {
    if (u == p) continue;
    if (mark[u]) {
      up[v] = min(up[v], h[u]);
      continue;
    }
    h[u] = h[v] + 1;
    DFS(u, v);
    up[v] = min(up[v], up[u]);
    if (mark[u] != 2000) ch[v] = ch[u];
  }
  if (up[v] >= h[v]) mark[v] = 2000;
  if (v == 1) mark[v] = 2000;
  return;
}
void DFSD(int v, int p) {
  M[p].push_back(v);
  mark[v] = p;
  for (auto u : adj[v]) {
    if (mark[u] && mark[u] != 2000) continue;
    if (mark[u] == 2000)
      DFSD(u, u);
    else
      DFSD(u, p);
  }
  return;
}
void DFSB(int v, int p) {
  if (adj2[v].size() == 1) lv.push_back(v);
  for (auto u : adj2[v]) {
    if (u == p) continue;
    DFSB(u, v);
  }
  return;
}
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  cin >> n >> m;
  if (n == 2) return cout << -1, 0;
  for (int i = 0, u, v; i < m; i++) {
    cin >> u >> v;
    adj[u].push_back(v);
    adj[v].push_back(u);
  }
  DFS(1, 0);
  for (int i = 1; i <= n; i++)
    if (mark[i] == 1) mark[i] = 0;
  DFSD(1, 1);
  for (int i = 1; i <= n; i++) {
    for (auto u : adj[i]) {
      if (mark[u] == mark[i]) continue;
      adj2[mark[i]].push_back(mark[u]);
    }
  }
  DFSB(1, 0);
  int second = (int)lv.size();
  if ((int)second == 1) return cout << 0, 0;
  cout << (second + 1) / 2 << '\n';
  for (int i = 0; i < second; i++) {
    if (i + second / 2 >= second) break;
    cout << ch[lv[i]] << " " << ch[lv[i + second / 2]] << '\n';
  }
  return 0;
}