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;
int cnt, tot, num;
int arr[1000], dis[1000], low[1000], val[1000], col[1000], vis[1000][1000];
vector<int> v[1000], rv[1000];
void dfs(int x, int p) {
  arr[++tot] = x;
  dis[x] = ++cnt;
  low[x] = cnt;
  for (int i = 0; i < v[x].size(); i++) {
    int y = v[x][i];
    if (y == p) continue;
    if (dis[y])
      low[x] = min(low[x], dis[y]);
    else {
      dfs(y, x);
      low[x] = min(low[x], low[y]);
    }
  }
  if (low[x] == dis[x]) {
    ++num;
    while (1) {
      int y = arr[tot--];
      col[y] = num;
      if (y == x) break;
    }
    val[num] = x;
  }
}
void dfs1(int x, int p) {
  dis[x] = ++cnt;
  for (int i = 0; i < rv[x].size(); i++) {
    int y = rv[x][i];
    if (y == p) continue;
    dfs1(y, x);
  }
}
int a[1000];
bool cmp(int i, int j) { return dis[i] < dis[j]; }
int main() {
  int n, m;
  scanf("%d%d", &n, &m);
  for (int i = 0; i < m; i++) {
    int x, y;
    scanf("%d%d", &x, &y);
    v[x].push_back(y);
    v[y].push_back(x);
    vis[x][y] = vis[y][x] = 1;
  }
  dfs(1, 0);
  for (int i = 1; i <= n; i++) {
    for (int j = 0; j < v[i].size(); j++) {
      int k = v[i][j];
      if (col[k] == col[i]) continue;
      if (col[k] > col[i])
        continue;
      else {
        rv[col[i]].push_back(col[k]), rv[col[k]].push_back(col[i]);
      }
    }
  }
  if (n == 2) {
    puts("-1");
    return 0;
  }
  if (num == 1) {
    puts("0");
    return 0;
  }
  if (num == 2) {
    for (int i = 1; i <= n; i++)
      for (int j = i + 1; j <= n; j++)
        if (col[i] != col[j] && !vis[i][j]) {
          printf("%d\n", 1);
          printf("%d %d\n", i, j);
          return 0;
        }
  }
  cnt = 0;
  dfs1(1, 0);
  int gas = 0;
  for (int i = 1; i <= num; i++)
    if (rv[i].size() == 1) a[gas++] = i;
  sort(a, a + gas, cmp);
  printf("%d\n", (gas + 1) / 2);
  int xx = (gas + 1) / 2;
  for (int i = 0; i < gas / 2; i++) {
    printf("%d %d\n", val[a[i]], val[a[xx + i]]);
  }
  if (gas & 1) printf("%d %d\n", val[a[0]], val[a[gas / 2]]);
  return 0;
}