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;
mt19937 rng(chrono::steady_clock::now().time_since_epoch().count());
const long long maxn = 3e6;
const long long mod = 1e9 + 7;
const long double PI = acos((long double)-1);
long long pw(long long a, long long b, long long md = mod) {
  long long res = 1;
  while (b) {
    if (b & 1) {
      res = (a * res) % md;
    }
    a = (a * a) % md;
    b >>= 1;
  }
  return (res);
}
int n, m;
vector<int> adj[maxn];
int up[maxn];
int h[maxn];
int par[maxn];
int root;
void dfs(int v) {
  root = v;
  h[v] = h[par[v]] + 1;
  for (auto u : adj[v]) {
    if (!h[u]) par[u] = v, dfs(u), up[v] = min(up[v], up[u]);
    if (u != par[v]) up[v] = min(up[v], h[u]);
  }
}
int p[maxn];
int getpar(int v) { return ((p[v] == v) ? v : p[v] = getpar(p[v])); }
int cnt = 0;
void merge(int v, int u) {
  v = getpar(v), u = getpar(u);
  if (u == v) return;
  p[v] = u;
}
vector<int> dick;
void Dfs(int v, int par = 0) {
  int d = 0;
  for (auto u : adj[v]) {
    if (u != par) Dfs(u, v), d++;
  }
  if (par) d++;
  if (d <= 1) {
    cnt++;
    dick.push_back(v);
  }
}
int32_t main() {
  ios::sync_with_stdio(false), cin.tie(0), cout.tie(0);
  cin >> n >> m;
  if (n == 2) cout << -1, exit(0);
  for (int i = 1; i <= m; i++) {
    int u, v;
    cin >> u >> v;
    adj[u].push_back(v), adj[v].push_back(u);
  }
  for (int i = 1; i <= n; i++) up[i] = 1e9;
  dfs(1);
  for (int i = 1; i <= n; i++) adj[i].clear(), p[i] = i;
  for (int i = 2; i <= n; i++) {
    if (up[i] > h[par[i]])
      continue;
    else
      merge(i, par[i]);
  }
  for (int i = 2; i <= n; i++)
    if (getpar(i) != getpar(par[i]))
      adj[getpar(i)].push_back(getpar(par[i])),
          adj[getpar(par[i])].push_back(getpar(i));
  Dfs(getpar(root));
  if (cnt == 1) cnt = 0;
  cout << (cnt + 1) / 2 << '\n';
  if (dick.size() <= 1) return (0);
  int kir = 0;
  if (cnt % 2) {
    int u = dick[0];
    kir++;
    u = getpar(u);
    int v = dick[1];
    if (v == par[u]) {
      for (int i = 1; i <= n; i++)
        if (getpar(i) == getpar(v) and i != par[u]) v = i;
      if (v == par[u]) {
        for (int i = 1; i <= n; i++)
          if (getpar(i) == getpar(u) and v != par[i]) u = i;
      }
    }
    if (u == par[v]) {
      for (int i = 1; i <= n; i++)
        if (getpar(i) == getpar(u) and i != par[v]) u = i;
      if (u == par[v]) {
        for (int i = 1; i <= n; i++)
          if (getpar(i) == getpar(v) and u != par[i]) v = i;
      }
    }
    cout << u << ' ' << v << '\n';
    cnt--;
  }
  for (int i = 0; i < cnt / 2; i++) {
    int u = dick[kir + i];
    int v = dick[kir + i + cnt / 2];
    if (v == par[u]) {
      for (int i = 1; i <= n; i++)
        if (getpar(i) == getpar(v) and i != par[u]) v = i;
      if (v == par[u]) {
        for (int i = 1; i <= n; i++)
          if (getpar(i) == getpar(u) and v != par[i]) u = i;
      }
    }
    if (u == par[v]) {
      for (int i = 1; i <= n; i++)
        if (getpar(i) == getpar(u) and i != par[v]) u = i;
      if (u == par[v]) {
        for (int i = 1; i <= n; i++)
          if (getpar(i) == getpar(v) and u != par[i]) v = i;
      }
    }
    cout << u << ' ' << v << '\n';
  }
  return (0);
}