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 long long N = 2e5;
const long long M = 20;
const long long SQ = 320;
const long long INF = 1e7;
const long long MOD = 1e9 + 7;
int n, m;
vector<pair<int, int> > v[N], v1, ans;
int d[N], f[N];
int f1[N];
int cnt, f2[N], a[N], b[N];
int d1[N];
vector<int> v2, adj[N];
int dfs(int x, int p, int h) {
  f[x] = 1;
  d[x] = h;
  int mi = INF;
  for (int i = 0; i < v[x].size(); i++)
    if (!f[v[x][i].first]) {
      int t = dfs(v[x][i].first, x, h + 1);
      mi = min(mi, t);
      if (t > h) {
        f1[v[x][i].second] = 1;
        v1.push_back(make_pair(x, v[x][i].first));
      }
    } else if (v[x][i].first != p)
      mi = min(mi, d[v[x][i].first]);
  return mi;
}
void dfs1(int x) {
  a[x] = cnt;
  f2[x] = 1;
  for (int i = 0; i < v[x].size(); i++)
    if (!f2[v[x][i].first] && !f1[v[x][i].second]) dfs1(v[x][i].first);
}
void dfs2(int x, int p) {
  for (int i = 0; i < adj[x].size(); i++)
    if (adj[x][i] != p) dfs2(adj[x][i], x);
  if (adj[x].size() == 1) v2.push_back(b[x]);
}
int main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  cin >> n >> m;
  for (int i = 0; i < m; i++) {
    int x, y;
    cin >> x >> y;
    x--;
    y--;
    v[x].push_back(make_pair(y, i));
    v[y].push_back(make_pair(x, i));
  }
  dfs(0, -1, 0);
  for (int i = 0; i < n; i++)
    if (!f2[i]) {
      dfs1(i);
      b[cnt++] = i;
    }
  for (int i = 0; i < v1.size(); i++) {
    int x = a[v1[i].first], y = a[v1[i].second];
    adj[x].push_back(y);
    adj[y].push_back(x);
  }
  dfs2(0, -1);
  for (int i = 0; i < v2.size() / 2; i++)
    ans.push_back(make_pair(v2[i], v2[i + (v2.size() / 2)]));
  if (v2.size() % 2) ans.push_back(make_pair(v2[0], v2.back()));
  if (v1.size() == 1) {
    if (n == 2) {
      cout << "-1\n";
      return 0;
    }
    for (int i = 0; i < n; i++)
      if (a[ans[0].first] != a[i] && make_pair(ans[0].first, i) != v1[0] &&
          make_pair(i, ans[0].first) != v1[0]) {
        cout << "1\n";
        cout << ans[0].first + 1 << ' ' << i + 1 << '\n';
        return 0;
      }
    for (int i = 0; i < n; i++)
      if (a[ans[0].second] != a[i] && make_pair(ans[0].second, i) != v1[0] &&
          make_pair(i, ans[0].second) != v1[0]) {
        cout << "1\n";
        cout << ans[0].second + 1 << ' ' << i + 1 << '\n';
        return 0;
      }
  }
  cout << ans.size() << '\n';
  for (int i = 0; i < ans.size(); i++)
    cout << ans[i].first + 1 << ' ' << ans[i].second + 1 << '\n';
  return 0;
}