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 = 1e3 + 20;
const int maxm = 1e5 + 20;
vector<int> adj[maxn], out[maxn], in[maxn], comp[maxn], topol, leaf;
int color[maxn], from[maxm], to[maxm], h[maxn], c = 1;
bool visited[maxn];
set<pair<int, int> > st;
void direct_dfs(int v) {
  visited[v] = 1;
  for (auto u : adj[v]) {
    if (!visited[u]) {
      out[v].push_back(u);
      in[u].push_back(v);
      h[u] = h[v] + 1;
      direct_dfs(u);
    } else if (h[u] < h[v] && h[u] != h[v] - 1) {
      out[v].push_back(u);
      in[u].push_back(v);
    }
  }
}
void dfs(int v) {
  visited[v] = 1;
  for (auto u : out[v])
    if (!visited[u]) dfs(u);
  topol.push_back(v);
}
void sfd(int v) {
  comp[c].push_back(v);
  color[v] = c;
  for (auto u : in[v])
    if (!color[u]) sfd(u);
}
void dfs_st(int v, int p = -1) {
  for (auto u : adj[v])
    if (u != p) dfs_st(u, v);
  if (adj[v].size() == 1) leaf.push_back(v);
}
int main() {
  int n, m;
  cin >> n >> m;
  for (int i = 0; i < m; i++) {
    cin >> from[i] >> to[i];
    from[i]--;
    to[i]--;
    st.insert({from[i], to[i]});
    st.insert({to[i], from[i]});
    adj[from[i]].push_back(to[i]);
    adj[to[i]].push_back(from[i]);
  }
  direct_dfs(0);
  fill(visited, visited + n, 0);
  for (int i = 0; i < n; i++)
    if (!visited[i]) dfs(i);
  reverse(topol.begin(), topol.end());
  for (auto v : topol)
    if (!color[v]) {
      sfd(v);
      c++;
    }
  for (int i = 0; i < n; i++) {
    adj[i].clear();
    out[i].clear();
    in[i].clear();
    topol.clear();
  }
  fill(visited, visited + n, 0);
  int k = 0;
  for (int i = 0; i < m; i++) {
    int v = from[i], u = to[i];
    if (color[v] != color[u])
      adj[color[v]].push_back(color[u]), adj[color[u]].push_back(color[v]), k++;
  }
  bool f = 0;
  for (int i = 1; i < c; i++)
    if (adj[i].size() > 1) {
      dfs_st(i);
      f = 1;
      break;
    }
  if (!f) {
    if (c == 2) {
      cout << 0 << endl;
      return 0;
    }
    for (auto v : comp[1])
      for (auto u : comp[2])
        if (st.find({v, u}) == st.end()) {
          cout << 1 << endl << v + 1 << " " << u + 1 << endl;
          return 0;
        }
    cout << -1 << endl;
    return 0;
  }
  k = leaf.size();
  cout << (k + 1) / 2 << endl;
  for (int i = 0; i < (k + 1) / 2; i++) {
    int x = leaf[i], y = leaf[min(i + k / 2, k - 1)];
    bool z = 0;
    for (auto v : comp[x]) {
      for (auto u : comp[y])
        if (st.find({v, u}) == st.end()) {
          cout << v + 1 << " " << u + 1 << endl;
          z = 1;
          break;
        }
      if (z) break;
    }
  }
}