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>
#pragma GCC optimize("O2")
using namespace std;
const int N = 1e6 + 10;
const long long mod = 1e9 + 7;
const long long mod2 = 998244353;
const long long inf = 8e18;
const int LOG = 22;
long long pw(long long a, long long b, long long M) {
  return (!b ? 1
             : (b & 1 ? (a * pw(a * a % M, b / 2, M)) % M
                      : pw(a * a % M, b / 2, M)));
}
int cnt = 1, n, m, ptr, H[N], king[N], up[N], is[N], mark[N], leaf[N], d[N],
    St[N];
vector<pair<int, int> > G[N];
void dfs(int v, int last) {
  mark[v] = 1;
  up[v] = H[v];
  for (auto y : G[v]) {
    int u = y.first, id = y.second;
    if (id == last) continue;
    if (mark[u]) {
      up[v] = min(up[v], H[u]);
    } else {
      H[u] = H[v] + 1;
      dfs(u, id);
      if (up[u] > H[v]) is[id] = 1;
      up[v] = min(up[v], up[u]);
    }
  }
}
void calc(int v) {
  St[v] = ++ptr;
  mark[v] = 1;
  for (auto y : G[v]) {
    int u = y.first, id = y.second;
    if (mark[u]) continue;
    if (is[id] == 1) {
      cnt++;
      king[u] = u;
      calc(u);
    } else {
      king[u] = king[v];
      calc(u);
    }
  }
}
bool cmp(int v, int u) { return St[v] < St[u]; }
int main() {
  scanf("%d%d", &n, &m);
  if (n == 2) return !printf("-1");
  H[1] = 1;
  for (int i = 1; i <= m; i++) {
    int a, b;
    scanf("%d%d", &a, &b);
    G[a].push_back(make_pair(b, i));
    G[b].push_back(make_pair(a, i));
  }
  dfs(1, -1);
  memset(mark, 0, sizeof mark);
  king[1] = 1;
  calc(1);
  if (cnt == 1) return !printf("0");
  for (int i = 1; i <= n; i++) {
    if (!leaf[king[i]])
      leaf[king[i]] = i;
    else if (H[i] > H[leaf[king[i]]])
      leaf[king[i]] = i;
    for (auto y : G[i]) {
      if (king[y.first] != king[i]) d[king[i]]++;
    }
  }
  vector<int> vec;
  for (int i = 1; i <= n; i++) {
    if (king[i] == i && d[i] == 1) vec.push_back(leaf[i]);
  }
  sort((vec).begin(), (vec).end(), cmp);
  int sz = (int)vec.size();
  printf("%d\n", (sz + 1) >> 1);
  for (int i = 0; i < ((sz + 1) >> 1); i++) {
    printf("%d %d\n", vec[i], vec[i + sz / 2]);
  }
  return 0;
}