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;
bool vis[maxn], isbr[maxn];
int tin[maxn], fup[maxn], par[maxn];
int curt;
vector<int> tree[maxn], comp[maxn], leaf;
vector<pair<int, int>> graph[maxn];
pair<int, int> edges[maxn];
void dfs(int u, int prev) {
  vis[u] = true;
  tin[u] = curt;
  fup[u] = curt++;
  for (auto i : graph[u]) {
    if (!vis[i.first]) {
      dfs(i.first, u);
      fup[u] = min(fup[u], fup[i.first]);
      if (fup[i.first] > tin[u]) {
        isbr[i.second] = true;
      }
    } else if (i.first != prev) {
      fup[u] = min(fup[u], tin[i.first]);
    }
  }
}
int find(int u) { return (par[u] == u ? u : par[u] = find(par[u])); }
void merge(int u, int v) {
  u = find(u);
  v = find(v);
  if (u == v) {
    return;
  }
  par[v] = u;
}
void dfstree(int u, int prev) {
  for (int i : tree[u]) {
    if (i != prev) {
      dfstree(i, u);
    }
  }
  if ((int)tree[u].size() == 1) {
    leaf.push_back(u);
  }
}
int m, n;
void connect(int u, int v) {
  for (int i : comp[u]) {
    for (int j : comp[v]) {
      if (!binary_search(edges, edges + m, make_pair(min(i, j), max(i, j)))) {
        cout << i + 1 << ' ' << j + 1 << endl;
        return;
      }
    }
  }
}
int u, v;
int main() {
  cin >> n >> m;
  for (int i = 0; i < n; i++) {
    par[i] = i;
  }
  if (n == 2 && m == 1) {
    cout << -1 << endl;
    return 0;
  }
  for (int i = 0; i < m; i++) {
    cin >> u >> v;
    u--;
    v--;
    graph[u].push_back(make_pair(v, i));
    graph[v].push_back(make_pair(u, i));
    edges[i] = make_pair(min(u, v), max(u, v));
  }
  dfs(0, -1);
  for (int i = 0; i < m; i++) {
    if (!isbr[i]) {
      merge(edges[i].first, edges[i].second);
    }
  }
  for (int i = 0; i < n; i++) {
    comp[find(i)].push_back(i);
  }
  for (int i = 0; i < m; i++) {
    if (isbr[i]) {
      u = find(edges[i].first);
      v = find(edges[i].second);
      tree[u].push_back(v);
      tree[v].push_back(u);
    }
  }
  dfstree(find(0), -1);
  sort(edges, edges + m);
  cout << (leaf.size() + 1) / 2 << endl;
  for (int i = 0; i < (leaf.size() + 1) / 2; i++) {
    int nxt = min(leaf.size() - 1, i + (leaf.size() / 2));
    connect(leaf[i], leaf[nxt]);
  }
}