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 char infile[] = "input.in";
const char outfile[] = "output.out";
ifstream fin(infile);
ofstream fout(outfile);
const int MAXN = 100005;
const int oo = 0x3f3f3f3f;
typedef vector<int> Graph[MAXN];
const inline int min(const int &a, const int &b) {
  if (a > b) return b;
  return a;
}
const inline int max(const int &a, const int &b) {
  if (a < b) return b;
  return a;
}
const inline void Get_min(int &a, const int b) {
  if (a > b) a = b;
}
const inline void Get_max(int &a, const int b) {
  if (a < b) a = b;
}
int N, M, depth[MAXN], lowLink[MAXN], Father[MAXN];
Graph G, E;
stack<pair<int, int> > st;
set<pair<int, int> > criticalEdges;
bitset<MAXN> Used;
inline int Find(int x) {
  if (Father[x] != x) Father[x] = Find(Father[x]);
  return Father[x];
}
inline void Unite(int x, int y) {
  int Tx = Find(x);
  int Ty = Find(y);
  if (Tx == Ty) return;
  if (Tx > Ty) swap(Tx, Ty);
  Father[Tx] = Father[Ty];
}
inline void ExtractBiconnectedComponent(int x, int y) {
  int Tx, Ty;
  set<int> S;
  do {
    Tx = st.top().first;
    Ty = st.top().second;
    S.insert(Tx);
    S.insert(Ty);
    st.pop();
  } while (Tx != x || Ty != y);
  if (S.size() > 2)
    for (set<int>::iterator it = S.begin(), fin = S.end(); it != fin; ++it)
      Unite(*it, *S.begin());
}
inline void DFs(int Node, int father, int actLevel) {
  depth[Node] = lowLink[Node] = actLevel;
  for (vector<int>::iterator it = G[Node].begin(), fin = G[Node].end();
       it != fin; ++it) {
    if (*it == father) continue;
    if (!depth[*it]) {
      st.push(make_pair(Node, *it));
      DFs(*it, Node, actLevel + 1);
      lowLink[Node] = min(lowLink[Node], lowLink[*it]);
      if (lowLink[*it] >= depth[Node]) {
        if (lowLink[*it] > depth[Node])
          criticalEdges.insert(make_pair(Node, *it));
        ExtractBiconnectedComponent(Node, *it);
      }
    } else
      lowLink[Node] = min(lowLink[Node], depth[*it]);
  }
}
inline void DFs(int Node, vector<int> &Ans) {
  Used[Node] = 1;
  bool leaf = true;
  for (vector<int>::iterator it = E[Node].begin(), fin = E[Node].end();
       it != fin; ++it)
    if (!Used[*it]) {
      DFs(*it, Ans);
      leaf = false;
    }
  if (leaf) Ans.push_back(Node);
}
int main() {
  cin.sync_with_stdio(false);
  cin >> N >> M;
  if (N == 2) {
    cout << "-1\n";
    return 0;
  }
  for (int i = 1; i <= N; ++i) Father[i] = i;
  for (int i = 1; i <= M; ++i) {
    int x, y;
    cin >> x >> y;
    G[x].push_back(y);
    G[y].push_back(x);
  }
  DFs(1, 0, 1);
  for (set<pair<int, int> >::iterator it = criticalEdges.begin(),
                                      fin = criticalEdges.end();
       it != fin; ++it) {
    int x = Find(it->first);
    int y = Find(it->second);
    E[x].push_back(y);
    E[y].push_back(x);
  }
  vector<int> Ans;
  for (int i = 1; i <= N; ++i) {
    if (E[i].size() == 1) {
      Ans.push_back(i);
    } else if (E[i].size() > 1) {
      Ans.clear();
      DFs(i, Ans);
      break;
    }
  }
  if (Ans.size() & 1) Ans.push_back(Ans.back());
  int sz = Ans.size() / 2;
  cout << sz << '\n';
  for (int i = 0; i < sz; ++i) cout << Ans[i] << ' ' << Ans[sz + i] << '\n';
  fin.close();
  fout.close();
  return 0;
}