Count Articulation Points
Count the vertices whose removal increases the number of connected components of an undirected graph.
Input
The first line contains n and m. The next m lines contain undirected edges.
1 <= n <= 1000
Output
Print the number of articulation points.
Example
Input
5 4
1 2
2 3
2 4
4 5
Output
2
Comments