#Lutece1574. Graph C0loring

Graph C0loring

Migrated from Lutece 1574 Graph C0loring

All parts of this problem, including description, images, samples, data and checker, might be broken. If you find bugs in this problem, please contact the admins.

Description

In computational complexity theory, a problem is NP-complete when it is both in NP and NP-hard.

The set of NP-complete problems is often denoted by NP-C or NPC. The abbreviation NP refers to "nondeterministic polynomial time''.

It seems that you need to solve a NP-complete problem now.

There is a simple undirected graph composed by NN vertices and MM edges, and the vertices are labeled from 11 to NN.

You need to color each vertex by a specific color such that there are no edges connect two vertices which have the same color.

Calculating the minimum number of colors you need to use.

Input

The first line contains two integers NN and MM.

For the next MM lines, each line contains two integer uu and vv, denotes an edge between the uthu_{th} vertex and the vthv_{th} vertex.

1N231 \leq N \leq 23, 0MN(N1)20 \leq M \leq \frac{N(N - 1)}{2}, 1u,vN1 \leq u, v \leq N.

Output

The minimum number of colors you need to use.

Samples

4 6
1 2
1 3
1 4
2 3
2 4
3 4
4

Resources

The 15th UESTC Programming Contest Final