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 = 1000 * 1000 + 10;
const int maxn5 = 3 * 1000 * 100 + 10;
const long long mod = 1000 * 1000 * 1000 + 7;
const long long inf = 1LL * 2 * 1000 * 1000 * 1000 * 1000 * 1000 * 1000 + 10;
vector<int> adj[maxn5], tree[maxn5], ans;
bool mark[maxn5];
set<pair<int, int> > av;
int h[maxn5], st[maxn5], tim = 0;
int find_dfs(int v, int par = -1) {
  mark[v] = true;
  int mn = h[v];
  for (auto u : adj[v]) {
    if (!mark[u]) {
      h[u] = h[v] + 1;
      int a = find_dfs(u, v);
      mn = min(a, mn);
      if (a > h[v]) av.insert({v, u});
    } else if (u != par)
      mn = min(mn, h[u]);
  }
  return mn;
}
bool rem_dfs(int v) {
  mark[v] = true;
  bool add = false;
  for (auto u : adj[v])
    if (!mark[u])
      if (rem_dfs(u) or av.find({u, v}) != av.end() or
          av.find({v, u}) != av.end()) {
        tree[v].push_back(u);
        tree[u].push_back(v);
        add = true;
      }
  return add;
}
void sort_dfs(int v) {
  mark[v] = true;
  st[v] = tim++;
  for (auto u : tree[v])
    if (!mark[u]) sort_dfs(u);
  return;
}
bool cmp(int a, int b) {
  if (st[a] < st[b]) return true;
  return false;
}
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(0);
  cout.tie(0);
  int n, m;
  cin >> n >> m;
  for (int i = 0; i < m; i++) {
    int a, b;
    cin >> a >> b;
    adj[a].push_back(b);
    adj[b].push_back(a);
  }
  if (n == 2) return cout << -1 << endl, 0;
  find_dfs(1);
  if (av.size() == 1) {
    cout << 1 << endl;
    int v = av.begin()->first, u = av.begin()->second;
    if (adj[v].size() != 1)
      return cout << u << ' ' << (adj[v][0] == u ? adj[v][1] : adj[v][0])
                  << endl,
             0;
    return cout << v << ' ' << (adj[u][0] == v ? adj[u][1] : adj[u][0]) << endl,
           0;
  }
  fill(mark, mark + maxn5, false);
  int v = av.begin()->first, u = av.begin()->second;
  rem_dfs(v);
  fill(mark, mark + maxn5, false);
  sort_dfs(tree[v].size() == 1 ? u : v);
  for (int i = 1; i <= n; i++)
    if (tree[i].size() == 1) ans.push_back(i);
  sort(ans.begin(), ans.end(), cmp);
  cout << ans.size() / 2 + ans.size() % 2 << endl;
  if (ans.size() % 2 == 1) {
    cout << ans.back() << ' ' << ans[0] << endl;
    ans.pop_back();
  }
  int t = ans.size();
  for (int i = 0; i < t / 2; i++)
    cout << ans[i] << ' ' << ans[i + t / 2] << '\n';
  return 0;
}