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 N = 200004;
vector<int> g[N], h[N];
int a[N], z[N], n, m;
int dfn[N], low[N], col[N], idx = 0, c = 0;
int st[N], pt = 0;
bool ins[N];
void tarjan(int u, int fa) {
  dfn[u] = low[u] = ++idx;
  st[++pt] = u;
  ins[u] = 1;
  for (int v : g[u]) {
    if (v == fa) continue;
    if (!dfn[v]) {
      tarjan(v, u);
      low[u] = min(low[u], low[v]);
    } else if (ins[v])
      low[u] = min(low[u], dfn[v]);
  }
  if (dfn[u] == low[u]) {
    ++c;
    int v;
    do {
      v = st[pt--];
      col[v] = c;
      ins[v] = 0;
    } while (v != u);
  }
}
int f[N], lv[N], w = 0;
int main() {
  int k, x, y;
  scanf("%d %d", &n, &m);
  for (int i = 0; i < m; i++) {
    scanf("%d %d", &x, &y);
    g[x].push_back(y);
    g[y].push_back(x);
  }
  tarjan(1, 0);
  if (n == 2) return puts("-1"), 0;
  if (c == 1) return puts("0"), 0;
  for (int u = 1; u <= n; u++)
    for (int v : g[u])
      if (col[u] != col[v]) h[col[u]].push_back(col[v]);
  vector<int> lv;
  for (int i = 1; i <= c; i++)
    if (h[i].size() == 1) lv.push_back(i);
  for (int i = 1; i <= n; i++) f[col[i]] = i;
  if (c == 2) {
    auto it = find(g[f[1]].begin(), g[f[1]].end(), f[2]);
    if (it != g[f[1]].end()) {
      for (int i = n; i >= 1; i--) f[col[i]] = i;
    }
    return printf("1\n%d %d\n", f[1], f[2]), 0;
  }
  printf("%d\n", (lv.size() + 1) / 2);
  vector<pair<int, int> > v;
  int sz = lv.size();
  sz >>= 1;
  for (int i = sz; i < lv.size(); i++)
    v.push_back(pair<int, int>(f[lv[i - sz]], f[lv[i]]));
  for (pair<int, int> &pa : v) printf("%d %d\n", pa.first, pa.second);
}