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 PYTHON3):

Solution:
def dfs1(v):
    mark[v]=1
    st.append(v)
    dp[v]=d[v]
    for u in adj[v]:
        if not mark[u]:
            d[u]=d[v]+1
            dfs1(u)
            dp[v]=min(dp[u],dp[v])
        elif d[u]<d[v]-1:
            dp[v]=min(dp[v],d[u])
    if dp[v]==d[v]:
        ver[cnt[0]]=v
        prv =-1
        while prv != v:
            prv = st.pop()
            if d[ver[cnt[0]]]<d[prv]:
                ver[cnt[0]]=prv
            col[prv]=cnt[0]
            for u in adj[prv]:
                if col[u]!=-1 and col[u]!= cnt[0]:
                    child[cnt[0]].append(col[u])
        cnt[0]+=1

cnt=[0]
N = 100000
adj=[[]for i in range(N)]
child=[[]for i in range(N)]
ord=[]
mark=[False]*N
dp=[-1]*N
d=[-1]*N
st = []
col=[-1]*N
ver =[-1]*N
n,m = map(int,input().split())
if n == 2 and m == 1:
	print("-1")
	exit(0)
for i in range(m):
	u,v = map(int,input().split())
	adj[v-1].append(u-1)
	adj[u-1].append(v-1)
dfs1(0)
ver[cnt[0]-1] = 0
if cnt[0] == 1:
	print("0")
	exit(0)
for i in range(cnt[0]):
	if len(child[i]) == 0:
		ord.append(i)
if len(child[cnt[0]-1]) == 1:
		ord.append(cnt[0]-1);
ans = int((len(ord)+1) /2)
print(ans)
ans1=0
ans2=0
for i in range(ans):
    ans1 = ver[ord[i]]+1
    ans2 = ver[ord[min(len(ord),int(i+len(ord)/2))]]+1
    print(ans1,ans2)