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(3)
#pragma GCC optimize(2)
using namespace std;
unordered_set<int> g[922];
unordered_set<int> t[922];
unordered_set<int> cp[922];
int low[922], visited[922], instack[922];
int cmpid[922];
stack<int> st;
int cnt;
void dfs(int v, int pre) {
  low[v] = visited[v] = ++cnt;
  st.push(v);
  instack[v] = 1;
  for (auto nv : g[v]) {
    if (nv != pre) {
      if (!visited[nv]) {
        dfs(nv, v);
        low[v] = min(low[v], low[nv]);
      } else if (instack[nv]) {
        low[v] = min(low[v], visited[nv]);
      }
    }
  }
  if (low[v] == visited[v]) {
    while (st.top() != v) {
      cmpid[st.top()] = v;
      instack[st.top()] = 0;
      st.pop();
    }
    cmpid[st.top()] = v;
    instack[st.top()] = 0;
    st.pop();
  }
}
void dfs2(int v) {
  visited[v] = cnt++;
  for (auto nv : t[v]) {
    if (!visited[nv]) {
      dfs2(nv);
    }
  }
}
static bool cmp(const int &v1, const int &v2) {
  return visited[v1] < visited[v2];
}
int main() {
  int n, m, i;
  scanf("%d%d", &n, &m);
  if (n == 2 && m == 1) {
    printf("-1\n");
    return 0;
  }
  for (i = 1; i <= m; ++i) {
    int v1, v2;
    scanf("%d%d", &v1, &v2);
    g[v1].insert(v2), g[v2].insert(v1);
  }
  dfs(1, 0);
  for (i = 1; i <= n; ++i) {
    cp[cmpid[i]].insert(i);
    for (auto v : g[i]) {
      if (cmpid[i] != cmpid[v]) {
        t[cmpid[i]].insert(cmpid[v]);
        t[cmpid[v]].insert(cmpid[i]);
      }
    }
  }
  vector<int> ret;
  cnt = 0;
  for (i = 1; i <= n; ++i) {
    cnt += (t[i].size() > 0);
    if (t[i].size() == 1) {
      ret.push_back(i);
    }
  }
  if (cnt == 1) {
    printf("0\n");
    return 0;
  }
  if (cnt == 2) {
    printf("1\n");
    int idx = 0;
    if (cp[cmpid[ret[1]]].size() > 1) idx = 1;
    for (auto v : cp[ret[idx]]) {
      if (g[v].find(ret[1 ^ idx]) == g[v].end()) {
        printf("%d %d\n", ret[1 ^ idx], v);
        break;
      }
    }
    return 0;
  }
  int sz = ret.size();
  printf("%d\n", (sz + 1) / 2);
  cnt = 1;
  memset(visited, 0, sizeof(visited));
  for (i = 1; i <= n; ++i) {
    if (!visited[i]) {
      dfs2(i);
    }
  }
  sort(ret.begin(), ret.end(), cmp);
  if (sz % 2 == 1) sz--;
  sz = sz / 2;
  for (i = sz; i < (int)ret.size(); ++i) {
    printf("%d %d\n", ret[i - sz], ret[i]);
  }
  return 0;
}