Count Articulation Points


Submit solution

Points: 100
Time limit: 2.0s
Memory limit: 256M

Author:
Problem types

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

There are no comments at the moment.