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>
#pragma GCC optimize("O2")
using namespace std;
const long long MXN = 1e5 + 10;
long long n, m, V, root, timer;
long long Par[MXN], Sz[MXN], Min[MXN], dis[MXN], Stm[MXN];
vector<long long> adj[MXN], G[MXN], ver;
vector<pair<long long, long long>> E;
bool vis[MXN];
long long Find(long long x) {
  return (Par[x] == x ? x : Par[x] = Find(Par[x]));
}
void Union(long long x, long long y) {
  x = Find(x), y = Find(y);
  if (x == y) return;
  if (Sz[x] < Sz[y]) swap(x, y);
  Sz[x] += Sz[y], Par[y] = x;
}
void dfs(long long u, long long par) {
  vis[u] = 1, Min[u] = MXN;
  for (auto v : adj[u]) {
    if (v == par) continue;
    if (vis[v]) {
      Min[u] = min(Min[u], dis[v]);
      continue;
    }
    dis[v] = dis[u] + 1;
    dfs(v, u);
    if (Min[v] <= dis[u])
      Union(u, v);
    else
      E.push_back({u, v});
    Min[u] = min(Min[u], Min[v]);
  }
}
void DFS(long long u, long long par) {
  Stm[u] = ++timer;
  for (auto v : G[u]) {
    if (v == par) continue;
    DFS(v, u);
  }
}
int main() {
  ios::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  cin >> n >> m;
  if (n == 2) return cout << -1, 0;
  for (int i = 1; i <= n; i++) Par[i] = i, Sz[i] = 1;
  for (int i = 1; i <= m; i++) {
    long long u, v;
    cin >> u >> v;
    adj[u].push_back(v), adj[v].push_back(u);
  }
  dfs(1, 0);
  for (auto e : E) {
    long long u, v;
    tie(u, v) = e;
    u = Find(u), v = Find(v);
    G[u].push_back(v), G[v].push_back(u);
  }
  for (int i = 1; i <= n; i++) {
    if (i != Par[i]) continue;
    V++;
    if (G[i].size() > 1)
      root = i;
    else
      ver.push_back(i);
  }
  if (V == 1) return cout << 0, 0;
  if (V == 2) {
    long long fir = Find(1), sec = -1;
    for (int i = 2; i <= n; i++) {
      if (Find(i) == fir) continue;
      sec = Find(i);
      break;
    }
    if (Sz[fir] > Sz[sec]) swap(fir, sec);
    long long ans1 = fir, ans2;
    memset(vis, 0, sizeof vis);
    for (auto v : adj[ans1]) vis[v] = 1;
    for (int i = 1; i <= n; i++) {
      if (i == ans1 || vis[i] || Find(i) == ans1) continue;
      ans2 = i;
      break;
    }
    cout << 1 << '\n';
    cout << ans1 << ' ' << ans2 << '\n';
    return 0;
  }
  DFS(root, 0);
  sort(ver.begin(), ver.end(),
       [&](const long long &u, const long long &v) { return Stm[u] < Stm[v]; });
  cout << (ver.size() + 1) / 2 << '\n';
  for (int i = 0; i < (ver.size() + 1) / 2; i++) {
    cout << ver[i] << ' ' << ver[i + ver.size() / 2] << '\n';
  }
  return 0;
}