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;
long long power(long long a, long long b, long long md) {
  return (!b ? 1
             : (b & 1 ? a * power(a * a % md, b / 2, md) % md
                      : power(a * a % md, b / 2, md) % md));
}
const int xn = 1e5 + 10;
const int xm = -20 + 10;
const int sq = 320;
const int inf = 1e9 + 10;
const long long INF = 1e18 + 10;
const int mod = 998244353;
const int base = 257;
int n, m, par[xn], sz[xn], dp[xn], H[xn];
int c[xn], ted;
pair<int, int> E[xn];
bool mark[xn];
vector<pair<int, int> > adj[xn];
vector<int> G[xn], leaf;
int get_root(int v) {
  if (v == par[v]) return v;
  return par[v] = get_root(par[v]);
}
void merge(int v, int u) {
  v = get_root(v);
  u = get_root(u);
  if (v == u) return;
  if (sz[v] < sz[u] || true) swap(v, u);
  par[u] = v;
  sz[v] += sz[u];
}
void DFS2(int v, int p = -1) {
  int d = 1 - (v == get_root(1));
  for (int u : G[v])
    if (u != p) DFS2(u, v), ++d;
  if (d == 1) leaf.push_back(v);
}
void DFS(int v, int p = -1) {
  mark[v] = true;
  dp[v] = H[v];
  for (pair<int, int> u : adj[v]) {
    if (mark[u.first]) {
      if (u.first != p) dp[v] = min(dp[v], H[u.first]);
      continue;
    }
    H[u.first] = H[v] + 1;
    c[u.second] = u.first;
    DFS(u.first, v);
    dp[v] = min(dp[v], dp[u.first]);
  }
}
int main() {
  ios::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  ;
  cin >> n >> m;
  for (int i = 1; i <= m; ++i) {
    int v, u;
    cin >> v >> u;
    E[i] = {v, u};
    adj[v].push_back({u, i});
    adj[u].push_back({v, i});
  }
  DFS(1);
  if (n == 2) return cout << -1 << '\n', 0;
  for (int i = 1; i <= n; ++i) adj[i].clear(), par[i] = i, sz[i] = 1;
  for (int i = 1; i <= m; ++i)
    if (!c[i] || dp[c[i]] < H[c[i]]) merge(E[i].first, E[i].second);
  for (int i = 1; i <= m; ++i) {
    if (c[i] && dp[c[i]] >= H[c[i]]) {
      int v = E[i].first, u = E[i].second;
      v = get_root(v), u = get_root(u);
      G[v].push_back(u);
      G[u].push_back(v);
    }
  }
  DFS2(get_root(1));
  ted = int(leaf.size());
  cout << (ted + 1) / 2 << '\n';
  for (int i = 0; i < (ted + 1) / 2; ++i)
    cout << leaf[i] << ' ' << leaf[i + ted / 2] << '\n';
  return 0;
}