Roads
In Ukraine, as you know, a lot of problems. One of them — the road. The newly elected president of Ukraine decided to do road construction. His goal — to build some additional amount of roads between cities so that you can drive from any city of Ukraine in any (possibly through other cities, not necessarily directly). Naturally, any additional roads should be built as possible.
We assume that all the roads in Ukraine bilateral (and already available, and those that will be built), that is, it may move in both directions. Note that between the two cities may be somewhat expensive. In addition, there may be roads connecting the city to itself.
Input
The first line contains two natural numbers and — number of cities and the number of existing roads. The following lines contain two integers and — the numbers of cities connected to an existing road.
Output
Print the minimum number of roads to be constructed, to exist a path from any city to any.