Problem: Eulerian Flight Tour

You have an airline route map of a certain region. All the airports in the region and all the non-stop routes between them are on the map. Here, a non-stop route is a flight route that provides non-stop flights in both ways.

Named after the great mathematician Leonhard Euler, an Eulerian tour is an itinerary visiting all the airports in the region taking a single flight of every non-stop route available in the region. To be precise, it is a list of airports, satisfying all of the following.

* The list begins and ends with the same airport.
* There are non-stop routes between pairs of airports adjacent in the list.
* All the airports in the region appear at least once in the list. Note that it is allowed to have some airports appearing multiple times.
* For all the airport pairs with non-stop routes in between, there should be one and only one adjacent appearance of two airports of the pair in the list in either order.



It may not always be possible to find an Eulerian tour only with the non-stop routes listed in the map. Adding more routes, however, may enable Eulerian tours. Your task is to find a set of additional routes that enables Eulerian tours.

Input

The input consists of a single test case.


$n$ $m$
$a_1$ $b_1$
...
$a_m$ $b_m$


$n$ ($3 \leq n \leq 100$) is the number of airports. The airports are numbered from 1 to $n$. $m$ ($0 \leq m \leq \frac{n(n-1)}{2}$) is the number of pairs of airports that have non-stop routes. Among the $m$ lines following it, integers $a_i$ and $b_i$ on the $i$-th line of them ($1 \leq i \leq m$) are airport numbers between which a non-stop route is operated. You can assume $1 \leq a_i < b_i \leq n$, and for any $i \ne j$, either $a_i \ne a_j$ or $b_i \ne b_j$ holds.

Output

Output a set of additional non-stop routes that enables Eulerian tours. If two or more different sets will do, any one of them is acceptable. The output should be in the following format.


$k$
$c_1$ $d_1$
...
$c_k$ $d_k$


$k$ is the number of non-stop routes to add, possibly zero. Each of the following $k$ lines should have a pair of integers, separated by a space. Integers $c_i$ and $d_i$ in the $i$-th line ($c_i < d_i$) are airport numbers specifying that a non-stop route is to be added between them. These pairs, ($c_i, d_i$) for $1 \leq i \leq k$, should be distinct and should not appear in the input.

If adding new non-stop routes can never enable Eulerian tours, output -1 in a line.

Sample Input 1


4 2
1 2
3 4


Sample Output 1


2
1 4
2 3


Sample Input 2


6 9
1 4
1 5
1 6
2 4
2 5
2 6
3 4
3 5
3 6


Sample Output 2


-1


Sample Input 3


6 7
1 2
1 3
1 4
2 3
4 5
4 6
5 6


Sample Output 3


3
1 5
2 4
2 5


Sample Input 4


4 3
2 3
2 4
3 4


Sample Output 4


-1


Sample Input 5


5 5
1 3
1 4
2 4
2 5
3 5


Sample Output 5


0






Example

Input

4 2
1 2
3 4


Output

2
1 4
2 3

Solution (in CPP):

Solution:
#include "bits/stdc++.h"

#pragma warning(disable:4996)
using namespace std;


struct UnionFind {
	vector<int> data;
	UnionFind(int size) : data(size, -1) { }
	bool unionSet(int x, int y) {
		x = root(x); y = root(y);
		if (x != y) {
			if (data[y] < data[x]) swap(x, y);
			data[x] += data[y]; data[y] = x;
		}
		return x != y;
	}
	int root(int x) {
		return data[x] < 0 ? x : data[x] = root(data[x]);
	}
	int size(int x) {
		return -data[root(x)];
	}
};
void add(int a, int b, vector<vector<int>>&field) {
	field[a][b]=true;
	field[b][a]=true;
}
void mk_perfect(const vector<int>&v, vector<vector<int>>&field) {
	for (int i = 0; i < v.size(); ++i) {
		for (int j = 0; j < v.size(); ++j) {
			if (i != j) {
				add(v[i],v[j],field);
			}
		}
	}
}
int dfs(const int now, const vector<vector<int>>&field, vector<vector<int>>&add_field, vector<int>&oks,vector<int>&comes) {
	if (oks[now]) {
		oks[now]=false;
		return true;
	}
	else {
		comes[now]=true;
		for (int i = 0; i < field[now].size(); ++i) {
			if (field[now][i] == 0) {
				if (!comes[i]) {
					bool ok = dfs(i, field, add_field, oks, comes);
					if (ok) {
						add_field[now][i] ^=1;
						add_field[i][now]^=1;
						return true;
					}
				}
			}
		}
	}
	return false;
}

bool check(const vector<vector<int>>field) {
	UnionFind uf(field.size());
	int N=field.size();
	vector<int>jisuu(N);
	for (int i = 0; i < N; ++i) {
		for (int j = 0; j < N; ++j) {
			if (i != j) {
				if (field[i][j]) {
					jisuu[i]++;
					uf.unionSet(i,j);
				}
			}
		}
	}
	bool ok1=uf.size(0)==N;
	bool ok2 = all_of(jisuu.begin(), jisuu.end(), [](const int a) {
		return a%2==0;
	});
	assert(ok1&&ok2);
	return true;
}
int main() {
	int N,M;cin>>N>>M;
	vector<vector<int>>field(N,vector<int>(N));
	for (int i = 0; i < M; ++i) {
		int a,b;cin>>a>>b;a--;b--;
		field[a][b]=true;
		field[b][a]=true;
	}
	auto ini_field(field);

	bool ok=true;
	if (N % 2 == 1) {
		vector<int>v(N);
		iota(v.begin(),v.end(),0);
		mk_perfect(v,field);
	}
	else {
		UnionFind uf(N);
		for (int i = 0; i < N; ++i) {
			for (int j = 0; j < N; ++j) {
				if (field[i][j]) {
					uf.unionSet(i,j);
				}
			}
		}
		map<int,vector<int>>mp;
		for (int i = 0; i < N; ++i) {
			mp[uf.root(i)].push_back(i);
		}
		vector<vector<int>>odds,evens;
		for (auto m : mp) {
			if(m.second.size()%2)odds.push_back(m.second);
			else evens.push_back(m.second);
		}
		sort(odds.begin(), odds.end(), [](const vector<int>&l, const vector<int>&r){return l.size() < r.size(); });
		if (odds.empty()&&evens.size() == 1) {
			vector<int>jisuu(N);
			vector<int>oks(N);
			for (int i = 0; i < N; ++i) {
				for (int j = 0; j < N; ++j) {
					if(i!=j&&field[i][j])jisuu[i]++;
				}
			}
			for (int i = 0; i < N; ++i) {
				oks[i]=jisuu[i]%2==1;
			}
			vector<vector<int>>add_field(N,vector<int>(N));
			for (int i = 0; i < N; ++i) {
				if (oks[i]) {
					oks[i]=false;
					vector<int>comes(N);
					int aok=dfs(i,field,add_field,oks,comes);
					if (!aok) {
						ok=false;
					}
					else {
						oks[i]=false;
					}
				}
			}
			if (ok) {
				for (int i = 0; i < N; ++i) {
					for (int j = 0; j < N; ++j) {
						field[i][j]^=add_field[i][j];
					}
				}
			}
		}
		else if (odds.size() == 2 && evens.empty()) {
			

			if (odds[0].size() == 1) {
				bool flag=false;
				pair<int,int>p;
				for (int i = 0; i < odds[1].size(); ++i) {
					for (int j = 0; j < odds[1].size(); ++j) {
						if(i==j)continue;
						if (field[odds[1][i]][odds[1][j]]) {

						}
						else {
							flag=true;
							p=make_pair(odds[1][i],odds[1][j]);
						}
					}
				}
				if (flag) {
					ok=true;
					mk_perfect(odds[1],field);
					field[p.first][p.second]=false;
					field[p.second][p.first]=false;
					add(p.first,odds[0][0],field);
					add(p.second,odds[0][0],field);
				}
				else {
					ok=false;
				}
			}
			else {
				for (auto v : odds) {
					mk_perfect(v, field);
				}
				for (auto v : evens) {
					mk_perfect(v, field);
				}
				for (int k0 = 0; k0 < 2; ++k0) {
					for (int k1 = 0; k1 < 2; ++k1) {
						field[odds[0][k0]][odds[1][k1]]=true;
						field[odds[1][k1]][odds[0][k0]]=true;
					}
				}
				ok=true;
			}
		}
		else {
			for (auto v : odds) {
				mk_perfect(v, field);
			}
			for (auto v : evens) {
				mk_perfect(v, field);
			}
			ok=true;
			while (odds.size()) {
				vector<int>nextv;
				for (auto k : odds[0]) {
					nextv.push_back(k);
				}
				for (auto k : odds[1]) {
					nextv.push_back(k);
				}
				odds.erase(odds.begin());
				odds.erase(odds.begin());
				mk_perfect(nextv,field);
				evens.push_back(nextv);
			}
			while (evens.size() >= 3) {
				vector<int>nextv(evens[0]);
				nextv.insert(nextv.end(),evens[1].begin(),evens[1].end());
				mk_perfect(nextv,field);
				evens.push_back(nextv);
				evens.erase(evens.begin());
				evens.erase(evens.begin());
			}
			assert(evens.size()==2);
			if(evens[0].size()>evens[1].size())swap(evens[0],evens[1]);
			for (int i = 0; i < evens[1].size(); ++i) {
				if(i<evens[0].size())add(evens[0][i],evens[1][i],field);
				else add(evens[0][0],evens[1][i],field);
			}
		}
	}
	if (ok) {
		check(field);
		vector<pair<int,int>>anss;
		for (int i = 0; i < N; ++i) {
			for (int j = i+1; j < N; ++j) {
				assert(field[i][j]==field[j][i]);
				if (field[i][j] && !ini_field[i][j]) {
					anss.push_back(make_pair(i+1,j+1));
				}
			}
		}
		cout<<anss.size()<<endl;
		for(auto an:anss)cout<<an.first<< " "<<an.second<<endl;
	}
	else {
		cout<<-1<<endl;
	}
	return 0;
}