Paths in multigraph#8563

Paths in multigraph

1 second
128 megabytes
Easy

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.

Input

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 .

Output

Print the minimum number of edges that must be removed from , so that the resulting multigraph is disconnected.

Examples

Example 1

Loading
Loading

Example 2

Loading
Loading

Example 3

Loading
Loading