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 MN = 900 + 90;
int h[MN];
int par[MN];
bool mark[MN];
vector<int> adj[MN];
vector<pair<int, int>> edges;
vector<int> adj2[MN];
vector<int> leaves;
bool mat[MN][MN];
int root(int v) { return par[v] == v ? v : par[v] = root(par[v]); }
void merg(int u, int v) { par[root(v)] = root(u); }
int dfs(int v, int p) {
  mark[v] = true;
  int mx = h[v];
  for (int i : adj[v]) {
    if (!mark[i]) {
      h[i] = h[v] + 1;
      mx = min(mx, dfs(i, v));
    } else if (i != p) {
      mx = min(mx, h[i]);
    }
  }
  if (mx < h[v]) merg(v, p);
  return mx;
}
void dfs2(int v, int p) {
  if (adj2[v].size() == 1) leaves.push_back(v);
  for (int i : adj2[v]) {
    if (i != p) dfs2(i, v);
  }
}
void print_edge(int u, int v) {
  if (!mat[u][v]) {
    cout << u + 1 << " " << v + 1 << endl;
    return;
  }
  for (int i = 0; i < 1000; i++) {
    if (root(i) == u && !mat[i][v]) {
      cout << i + 1 << " " << v + 1 << endl;
      return;
    } else if (root(i) == v && !mat[u][i]) {
      cout << i + 1 << " " << u + 1 << endl;
      return;
    }
  }
}
int main() {
  ios::sync_with_stdio(0);
  int n, m;
  cin >> n >> m;
  if (n == 2 && m == 1) {
    cout << -1;
    return 0;
  }
  for (int i = 0; i < m; i++) {
    int u, v;
    cin >> u >> v;
    u--;
    v--;
    adj[u].push_back(v);
    adj[v].push_back(u);
    edges.push_back(make_pair(u, v));
    mat[u][v] = mat[v][u] = 1;
  }
  iota(par, par + n, 0);
  dfs(0, 0);
  for (int i = 0; i < m; i++) {
    int x = root(edges[i].first), y = root(edges[i].second);
    if (x != y) {
      adj2[x].push_back(y);
      adj2[y].push_back(x);
    }
  }
  dfs2(root(0), -1);
  cout << (leaves.size() + 1) / 2 << endl;
  for (int i = 0; i < int(leaves.size()) / 2; i++) {
    print_edge(leaves[i], leaves[i + int(leaves.size()) / 2]);
  }
  if (leaves.size() % 2) {
    print_edge(leaves[0], leaves[leaves.size() - 1]);
  }
}