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>
using namespace std;
#define pb push_back
#define mp make_pair
#define rep(i,n) for(int i=0;i<n;i++)
#define repn(i,n) for(int i=1;i<=n;i++)
#define fi first
#define sc second
typedef pair<int,int> P;
typedef long long ll;
int n,m;
bool used[105][105];
struct uf{
	int par[105],sz[105];
	void init(){ rep(i,105) par[i] =i,sz[i]=1;}
	int find(int x){ if(x == par[x]) return x; else return par[x] = find(par[x]); }
	void unite(int x,int y){
		x = find(x); y = find(y); if(x == y) return;
		par[x] = y; sz[y] += sz[x];
	}
	bool same(int x,int y){ return find(x) == find(y); }
}kaede,co,cm;
vector<P>ans;
vector<int>C[105];
bool X[105];
bool dfs1(int v,int u){
	bool ret = X[v];
	rep(i,C[v].size()){
		int to = C[v][i];
		if(to == u) continue;
		ret ^= dfs1(to,v);
	}
	if(ret){
		ans.pb(P(min(u,v),max(u,v)));
	}
	return ret;
}
void solve1(){
	co.init();
	repn(i,n) for(int j=i+1;j<=n;j++){
		if(!used[i][j]) co.unite(i,j);
	}
	int cnt[105]={};
	repn(i,n){
		int x = 0;
		for(int j=1;j<=n;j++){
			x ^= used[min(i,j)][max(i,j)];
		}
		X[i]= x;
		if(x) cnt[co.find(i)]^=1;
	}
	repn(i,n){
		if(cnt[i]){
			puts("-1");
			exit(0);
		}
	}
	cm.init();
	repn(i,n) for(int j=i+1;j<=n;j++){
		if(!used[i][j] && !cm.same(i,j)){
			cm.unite(i,j);
			C[i].pb(j); C[j].pb(i);
		}
	}
	repn(i,n){
		if(cm.find(i) == i && C[i].size()){
			dfs1(i,-1);
		}
	}
	cout << ans.size() << endl;
	rep(i,ans.size()){
		int a = ans[i].fi, b = ans[i].sc;
		if(a > b) swap(a,b);
		cout << a << " " << b << endl;
	}
}
void solve2(){
	co.init();
	repn(i,n) for(int j=i+1;j<=n;j++) if(used[i][j]){
		co.unite(i,j);
	}
	vector<P>sz;
	repn(i,n) if(co.find(i) == i) sz.pb(P(co.sz[i],i));
	assert(sz.size() == 2); sort(sz.begin(),sz.end());
	//cout << sz[0].fi << sz[0].sc << sz[1].fi << sz[1].sc << endl;
	bool ex = 0;
	repn(i,n){
		int x = 0;
		for(int j=1;j<=n;j++){
			x ^= used[min(i,j)][max(i,j)];
		}
		X[i] = x; if(x) ex = 1;
	}
	if(!ex){
		if(sz[0].fi == 1){
			int x = sz[0].sc;
			repn(i,n) for(int j=i+1;j<=n;j++){
				if(i == x || j == x || used[i][j]) continue;
				ans.pb(P(x,i));
				ans.pb(P(x,j));
				goto ok;
			}
			puts("-1"); exit(0); ok:;
		}
		else{
			int x = sz[0].sc, y = sz[1].sc;
			vector<int>q,w;
			repn(i,n) if(co.find(i) == x) q.pb(i); else w.pb(i);
			assert(q.size() >= 2 && w.size() >= 2);
			ans.pb(P(q[0],w[0]));
			ans.pb(P(q[0],w[1]));
			ans.pb(P(q[1],w[0]));
			ans.pb(P(q[1],w[1]));
		}
	}
	else{
		int x = sz[0].sc, y = sz[1].sc;
		vector<int>q[2],w[2];
		repn(i,n) if(co.find(i) == x) q[X[i]].pb(i); else w[X[i]].pb(i);
		if(q[1].empty()){
			for(int i=0;i<w[1].size();i++){
				ans.pb(P(q[0][0],w[1][i]));
			}
		}
		else if(w[1].empty()){
			for(int i=0;i<q[1].size();i++){
				ans.pb(P(w[0][0],q[1][i]));
			}
		}
		else{
			for(int i=0;i<max(q[1].size(),w[1].size());i++){
				int a = (i<q[1].size()?q[1][i]:q[1].back());
				int b = (i<w[1].size()?w[1][i]:w[1].back());
				ans.pb(P(a,b));
			}
		}
	}
	cout << ans.size() << endl;
	rep(i,ans.size()){
		int a = ans[i].fi, b = ans[i].sc;
		if(a > b) swap(a,b);
		cout << a << " " << b << endl;
	}
}
int main(){
	cin >> n >> m;
	rep(i,m){
		int a,b; cin >> a >> b; used[a][b] = 1;
	}
	if(n%2 == 1){
		cout << n*(n-1)/2-m << endl;
		repn(i,n) for(int j=i+1;j<=n;j++) if(!used[i][j]) cout << i << " " << j << endl;
		return 0;
	}
	else{
		kaede.init();
		repn(i,n) for(int j=i+1;j<=n;j++) if(used[i][j]){
			kaede.unite(i,j);
		}
		multiset<P>vec;
		repn(i,n) if(kaede.find(i) == i) vec.insert(P(kaede.sz[i],i));
		
		if(vec.size() == 1){
			solve1();
		}
		else if(vec.size() == 2){
			solve2();
		}
		else{
			while(vec.size() > 2){
				auto it = vec.begin(); vec.erase(vec.begin());
				auto itt = vec.begin(); vec.erase(vec.begin());
				int v1 = (*it).sc, v2 = (*itt).sc;
				if(v1 > v2) swap(v1,v2);
				ans.pb(P(v1,v2)); used[v1][v2] = 1;
				kaede.unite(v1,v2);
				if(kaede.find(v1) == v1){
					vec.insert(P(kaede.sz[v1],v1));
				}
				else{
					assert(kaede.find(v2) == v2);
					vec.insert(P(kaede.sz[v2],v2));
				}
			}
			solve2();
		}
	}
}