human
A country has n cities. Initially, there is no road in the country. One day, the king decides to construct some roads connecting pairs of cities. Roads can be traversed either way. He wants those roads to be constructed in such a way that it is possible to go from each city to any other city by traversing at most two roads. You are also given m pairs of cities — roads cannot be constructed between these pairs of cities.

Your task is to construct the minimum number of roads that still satisfy the above conditions. The constraints will guarantee that this is always possible.

Input

The first line consists of two integers n and m .

Then m lines follow, each consisting of two integers ai and bi (1 ≤ ai, bi ≤ n, ai ≠ bi), which means that it is not possible to construct a road connecting cities ai and bi. Consider the cities are numbered from 1 to n.

It is guaranteed that every pair of cities will appear at most once in the input.

Output

You should print an integer s: the minimum number of roads that should be constructed, in the first line. Then s lines should follow, each consisting of two integers ai and bi (1 ≤ ai, bi ≤ n, ai ≠ bi), which means that a road should be constructed between cities ai and bi.

If there are several solutions, you may print any of them.

Examples

Input

4 1
1 3

Output

3
1 2
4 2
2 3

Note

This is one possible solution of the example: 


These are examples of wrong solutions:

 The above solution is wrong because it doesn't use the minimum number of edges (4 vs 3). In addition, it also tries to construct a road between cities 1 and 3, while the input specifies that it is not allowed to construct a road between the pair.  The above solution is wrong because you need to traverse at least 3 roads to go from city 1 to city 3, whereas in your country it must be possible to go from any city to another by traversing at most 2 roads.  Finally, the above solution is wrong because it must be possible to go from any city to another, whereas it is not...
Using python3 can you solve the prior task?

=====
Give me a Python code to print an integer s: the minimum number of roads that should be constructed, in the first line?
assistant
#Here is Python code to print an integer s: the minimum number of roads that should be constructed, in the first line.

class Graph:
    def __init__(self, n, m, roadsNotAllowed):
        self.n = n
        self.m = m
        self.roadsNotAllowed = roadsNotAllowed
        self._canBeRoot = set((x+1 for x in range(n)))
        self._graph = []

    def _removeEdges(self):
        for i in range(len(self.roadsNotAllowed)):
            a, b = self.roadsNotAllowed[i]
            if a in self._canBeRoot:
                self._canBeRoot.remove(a)
            if b in self._canBeRoot:
                self._canBeRoot.remove(b)

    def _makeGraph(self):
        root = next(iter(self._canBeRoot))
        self._graph = [(root, x) for x in range(1, self.n+1) if x != root]

    def print(self):
        for i in range(len(self._graph)):
            print(self._graph[i][0], self._graph[i][1])

    def printSol(self):
        self._removeEdges()
        self._makeGraph()
        print(self.n-1)
        self.print()

class Solution:
    def solve(self):
        n, m = input().strip().split()
        n, m = int(n), int(m)
        arr = []
        for i in range(m):
            a, b = input().split()
            a, b = int(a), int(b)
            arr.append((a, b))
        Graph(n, m, arr).printSol()

Solution().solve()