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 = 909;
int n, m, cp, D[N], H[N], M[N], Mn[N], L[N];
vector<int> V, T, Adj[N];
void DFS(int v, int p) {
  Mn[v] = H[v];
  M[v] = 1;
  for (int &u : Adj[v]) {
    if (u == p) continue;
    if (M[u]) Mn[v] = min(Mn[v], H[u]);
    if (!M[u]) H[u] = H[v] + 1, DFS(u, v), Mn[v] = min(Mn[v], Mn[u]);
  }
}
void DFS2(int v, int c) {
  M[v] = c;
  for (int &u : Adj[v]) {
    if (!M[u] && Mn[u] < H[u])
      DFS2(u, c);
    else if (!M[u])
      V.push_back(++cp), DFS2(u, cp);
  }
}
int main() {
  scanf("%d%d", &n, &m);
  if (n == 2) return !printf("-1");
  for (int i = 1, v, u; i <= m; i++)
    scanf("%d%d", &v, &u), Adj[v].push_back(u), Adj[u].push_back(v);
  DFS(1, 0);
  memset(M, 0, sizeof(M));
  V.push_back(++cp);
  DFS2(1, cp);
  if (cp == 1) return !printf("0");
  for (int i = 1; i <= n; i++) {
    if (!L[M[i]])
      L[M[i]] = i;
    else if (H[i] > H[L[M[i]]])
      L[M[i]] = i;
    for (int &u : Adj[i])
      if (M[i] != M[u]) D[M[i]]++;
  }
  for (int &v : V)
    if (D[v] == 1) T.push_back(v);
  printf("%d\n", (int)T.size() + 1 >> 1);
  for (int i = 0; i < ((int)T.size() + 1 >> 1); i++)
    printf("%d %d\n", L[T[i]], L[T[i + (int)T.size() / 2]]);
  return (0);
}