You are given a graph $$$G$$$ of $$$n$$$ vertices and $$$m$$$ edges. Find any vertex cover (set of vertices such, that no two non-selected vertices are connected by an edge) $$$C$$$ of this graph such that if $$$a \neq b$$$ and $$$a,b \in C$$$ then $$$\gcd(a, b) = 1$$$.
The first line of the input contains two space-separated integers $$$n, m$$$ ($$$1 \leq n,m \leq 5 \cdot 10^5$$$).
The following $$$m$$$ lines each contain two integers $$$u_i, v_i$$$ ($$$1 \leq u_i \lt v_i \leq n$$$) — there is an edge between vertex $$$u_i$$$ and vertex $$$v_i$$$.
It is guaranteed that there exists at least one such cover $$$C$$$.
The first line of the output should contain $$$|C|$$$.
The second line of the output should contain $$$|C|$$$ space separated integers — elements of $$$C$$$.
If there are multiple solutions, print any of them.
5 4 1 2 2 3 3 4 4 5
3 2 3 5
| Название |
|---|


