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>
long e[300005] = {0}, last[300005] = {0}, totm = 0, now[905] = {0};
long cant[300005] = {0}, flag = 0;
long ans[905][2] = {0}, tot = 0;
long edge[905][905] = {0};
void ff(long x, long col, long belong[], long L[], long dfn[], long degree[]) {
  long i;
  belong[x] = col;
  for (i = now[x]; i; i = last[i])
    if (L[x] > dfn[e[i]] || L[e[i]] > dfn[x])
      degree[col]++;
    else if (!belong[e[i]])
      ff(e[i], col, belong, L, dfn, degree);
}
long dfs(long x, long target, long hash[], long belong[]) {
  long i;
  long temp;
  if (belong[x] == target) return 1;
  hash[x] = 1;
  for (i = now[x]; i; i = last[i])
    if (belong[x] != belong[e[i]] && !hash[e[i]]) {
      cant[(((i)&1) ? ((i) + 1) : ((i)-1))] = cant[i] = flag;
      temp = dfs(e[i], target, hash, belong);
      if (temp) return 1;
      cant[(((i)&1) ? ((i) + 1) : ((i)-1))] = cant[i] = 0;
    } else if (!hash[e[i]]) {
      temp = dfs(e[i], target, hash, belong);
      if (temp) return 1;
    }
  return 0;
}
long find(long x, long belong[], long degree[], long hash[]) {
  long temp, i;
  if (degree[belong[x]] == 1) return x;
  hash[x] = 1;
  for (i = now[x]; i; i = last[i])
    if (!hash[e[i]] && cant[i] != flag) {
      temp = find(e[i], belong, degree, hash);
      if (temp) return temp;
    }
  return 0;
}
long work(long n) {
  long dfn[905] = {0}, L[905] = {0}, up[905] = {0}, o = 0, i, g[905] = {0}, j;
  long col = 0, degree[905] = {0}, belong[905] = {0}, hash[905] = {0};
  long x = 0, y = 0;
  for (i = 1; i <= n; i++) g[i] = now[i];
  dfn[1] = ++o;
  L[1] = o;
  for (i = 1;;) {
    for (; g[i]; g[i] = last[g[i]]) {
      j = e[g[i]];
      if (!dfn[j]) {
        dfn[j] = ++o;
        L[j] = o;
        up[j] = i;
        g[i] = last[g[i]];
        i = j;
        goto loop;
      } else if (j != up[i] && dfn[j] < L[i])
        L[i] = dfn[j];
    }
    if (up[i]) {
      if (L[i] < L[up[i]]) L[up[i]] = L[i];
      i = up[i];
    } else
      break;
  loop:;
  }
  for (i = 1; i <= n; i++)
    if (!belong[i]) {
      col++;
      ff(i, col, belong, L, dfn, degree);
    }
  if (col == 1) return 0;
  for (i = 1; i <= col; i++)
    if (degree[i] >= 3) {
      if (x)
        y = i;
      else
        x = i;
    }
  flag++;
  if (x && y) {
    for (i = 1; i <= n; i++)
      if (belong[i] == x) break;
    dfs(i, y, hash, belong);
    memset(hash, 0, sizeof(hash));
    x = find(i, belong, degree, hash);
    for (i = 1; i <= n; i++)
      if (belong[i] == y) break;
    memset(hash, 0, sizeof(hash));
    y = find(i, belong, degree, hash);
    e[++totm] = y;
    last[totm] = now[x];
    now[x] = totm;
    e[++totm] = x;
    last[totm] = now[y];
    now[y] = totm;
    tot++;
    ans[tot][0] = x;
    ans[tot][1] = y;
  } else {
    for (x = 1; x <= n; x++)
      if (degree[belong[x]] == 1)
        for (y = 1; y <= n; y++)
          if (degree[belong[y]] == 1 && belong[x] != belong[y] && !edge[x][y])
            goto loop2;
    tot = -1;
    return 0;
  loop2:;
    edge[x][y] = edge[y][x] = 1;
    e[++totm] = y;
    last[totm] = now[x];
    now[x] = totm;
    e[++totm] = x;
    last[totm] = now[y];
    now[y] = totm;
    tot++;
    ans[tot][0] = x;
    ans[tot][1] = y;
  }
  return 1;
}
int main() {
  long n, m, i;
  long x, y;
  scanf("%ld%ld", &n, &m);
  for (i = 1; i <= m; i++) {
    scanf("%ld%ld", &x, &y);
    edge[x][y] = edge[y][x] = 1;
    e[++totm] = y;
    last[totm] = now[x];
    now[x] = totm;
    e[++totm] = x;
    last[totm] = now[y];
    now[y] = totm;
  }
  for (; work(n);)
    ;
  printf("%ld\n", tot);
  for (; tot > 0; tot--) printf("%ld %ld\n", ans[tot][0], ans[tot][1]);
  return 0;
}