Given is an undirected multigraph without loops. Write a program, which determines the minimum number of edges that must be removed from , so that the resulting multigraph is disconnected.
The first line contains an integer (2 \leq n \leq 100) - the number of vertices in . The vertices of the multigraph are numbered from to . The second line contains an integer (0 \leq m \leq 3000) - the number of edges in . The next lines contain the endpoints and of the consecutive edge in multigraph .
Print the minimum number of edges that must be removed from , so that the resulting multigraph is disconnected.
Example 1
Example 2
Example 3