Well, a very common method for graphs...#1977

Well, a very common method for graphs...

1 second
64 megabytes
Easy

Vitaliy Goldstein at the Winter School talked about graphs, white, black, and gray vertices, and solving many graph problems using the depth-first search method. At the end, he began to speak about the difficult life of a programmer and therefore forgot to give everyone at the Winter School in Kharkiv 2011 one more problem that can also be solved by the indicated method. Naturally, Vitaliy could not forget about it and asked us to offer this problem to everyone, for as a true master lecturer, he should not miss the opportunity to pose any, even a simple problem, whenever communicating with the audience, even if this communication happens remotely.

Thus, here is another simple problem that can be solved using the depth-first search method: "You are given an undirected graph with vertices and edges (1 \leq N \leq 20000, 0 \leq M \leq 200000). The graph contains no loops or multiple edges. Determine the connected components of the given graph."

Input

The graph is given in the input file as follows: The first line contains the numbers and . Each of the next lines describes an edge with two integers from to , representing the endpoints of the edge.

Output

Output a single line containing the number — the number of connected components in the given graph.

Examples

Example 1

Loading
Loading