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 = 900;
int vis[maxn];
int low[maxn], dfn[maxn], Time;
int idx[maxn];
int anc[maxn];
int deg[maxn];
vector<int> edge[maxn];
vector<int> tree[maxn];
vector<int> circle[maxn];
int n, sz;
void dfs(int u, int pre) {
  vis[u] = true;
  low[u] = dfn[u] = Time++;
  for (int i = 0; i < ((int)edge[u].size()); i++) {
    int v = edge[u][i];
    if (!vis[v]) {
      dfs(v, u);
      low[u] = min(low[u], low[v]);
    } else if (v != pre) {
      low[u] = min(low[u], dfn[v]);
    }
  }
  if (low[u] == dfn[u]) {
    anc[sz] = u;
    idx[u] = sz++;
  }
}
void build(int u, int pre) {
  vis[u] = true;
  if (u && idx[u] != -1) {
    tree[idx[u]].push_back(pre);
    tree[pre].push_back(idx[u]);
    deg[pre]++;
    pre = idx[u];
    deg[pre]++;
  }
  for (int i = 0; i < ((int)edge[u].size()); i++) {
    int v = edge[u][i];
    if (vis[v]) continue;
    build(v, pre);
  }
}
pair<int, int> solve(int u, bool root) {
  vis[u] = true;
  vector<int> a, b;
  for (int i = 0; i < ((int)tree[u].size()); i++) {
    int v = tree[u][i];
    if (vis[v]) continue;
    pair<int, int> ret = solve(v, false);
    b.push_back(ret.first);
    if (ret.second != -1) {
      a.push_back(ret.second);
      swap(b[0], b[((int)b.size()) - 1]);
    }
  }
  if (b.size() == 0) return make_pair(anc[u], -1);
  for (int i = ((int)b.size()) - 1; i >= 0; i--) {
    a.push_back(b[i]);
  }
  for (int i = 2 - a.size() % 2; i < ((int)a.size()); i += 2) {
    printf("%d %d\n", a[i] + 1, a[i + 1] + 1);
  }
  if (root) printf("%d %d\n", a[0] + 1, a[1] + 1);
  return a.size() & 1 ? make_pair(a[0], -1) : make_pair(a[0], a[1]);
}
bool hasE(int u, int v) {
  for (int i = 0; i < ((int)edge[u].size()); i++) {
    if (edge[u][i] == v) return true;
  }
  return false;
}
int main() {
  int m;
  scanf("%d%d", &n, &m);
  while (m--) {
    int a, b;
    scanf("%d%d", &a, &b);
    a--, b--;
    edge[a].push_back(b);
    edge[b].push_back(a);
  }
  if (n == 2) {
    puts("-1");
    return 0;
  }
  memset(idx, -1, sizeof(idx));
  dfs(0, -1);
  memset(vis, false, sizeof(vis));
  build(0, idx[0]);
  if (sz == 1) {
    puts("0");
    return 0;
  } else if (sz == 2) {
    puts("1");
    int u = -1, v = -1;
    for (int i = 0; i < n; i++) {
      if (idx[i] != -1) {
        if (u == -1)
          u = i;
        else
          v = i;
      }
    }
    if (hasE(u, v)) {
      for (int i = 0; i < n; i++) {
        if (idx[i] == -1) {
          if (low[i] == low[u])
            printf("%d %d\n", i + 1, v + 1);
          else
            printf("%d %d\n", i + 1, u + 1);
          return 0;
        }
      }
    }
    printf("%d %d\n", u + 1, v + 1);
    return 0;
  }
  int leaf = 0, root;
  for (int i = 0; i < sz; i++) {
    if (deg[i] == 1)
      leaf++;
    else
      root = i;
  }
  printf("%d\n", (leaf + 1) >> 1);
  memset(vis, false, sizeof(vis));
  solve(root, true);
  return 0;
}