Time Limit: 1 Sec
, Memory Limit: 128 Mb
We have a simple undirected graph with N vertices and M edges. The vertices are numbered 1 through N and the edges are numbered 1 through M. Edge i connects Vertex
- two vertices directly connected by an edge are always painted in different colors.
Here, it is not mandatory to use all the colors.
Input is given from Standard Input in the following format:
.
Print the answer.
3 3
1 2
2 3
3 1
6
$1 \leq N \leq20$ $0≤M≤\frac{N(N−1)}{2}$ $1 \leq A_i \leq N$ $1 \leq B_i \leq N$ - The given graph is simple (that is, has no multi-edges and no self-loops).
- Note that the graph may not be connected.