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 = 2e6 + 5;
int n, m;
namespace BCC {
const int N = 202020;
vector<int> bcc[N];
vector<int> k;
int cnt, dfn[N], low[N], id[N], st[N], _st, _, to[N];
void dfs(int c, int dep, vector<int> g[]) {
  int cc = 0;
  st[_st++] = c;
  dfn[c] = low[c] = dep;
  for (auto t : g[c]) {
    if (!dfn[t]) {
      dfs(t, dep + 1, g);
      low[c] = min(low[c], low[t]);
    } else if (dfn[t] != dfn[c] - 1 || cc++)
      low[c] = min(low[c], dfn[t]);
  }
  if (low[c] == dfn[c]) {
    to[_] = st[_st - 1];
    do {
      id[st[--_st]] = _;
    } while (st[_st] != c);
    _++;
  }
}
int solve(int n, vector<int> g[]) {
  cnt = 0;
  fill_n(dfn, n, _ = 0);
  fill_n(low, n, _st = 0);
  fill_n(bcc, n, vector<int>());
  for (int i = (0); i < (n); i++)
    if (!dfn[i]) dfs(i, 1, g), cnt++;
  for (int i = (0); i < (n); i++)
    for (auto j : g[i])
      if (id[i] != id[j]) bcc[id[i]].push_back(id[j]);
  return cnt;
}
}  // namespace BCC
vector<int> g[N];
int main() {
  cin >> n >> m;
  if (n == 2) {
    cout << -1;
    return 0;
  }
  for (int i = (1); i < (m + 1); i++) {
    int u, v;
    cin >> u >> v;
    u--, v--;
    g[u].push_back(v);
    g[v].push_back(u);
  }
  BCC::solve(n, g);
  int leaf = 0;
  vector<int> s;
  for (int i = (0); i < (BCC::_); i++) {
    if ((int)BCC::bcc[i].size() == 1) leaf++, s.push_back(BCC::to[i] + 1);
  }
  int ans = (leaf + 1) / 2;
  cout << ans << "\n";
  if (leaf & 1) ans--;
  for (int i = ans; i <= leaf - 1; ++i)
    cout << s[i] << " " << s[i - ans] << "\n";
  return 0;
}