Space Travel
3141 year. Space travel using subspaces teleported tunnels are no longer a novelty. However, not all Terran Federation Megagallaktick network of tunnels is well developed.
In a stellar system n planets connected by tunnels, so that on each planet you can get to every single way, moving only through the tunnels. At the same tunnel to navigate through hyperspace is allowed in both directions.
Installed on every planet in the substation, which provides all the tunnels that this planet is connected to the other. If this stops working substation (for example, due to a failure or due to the fact that its close on preventive maintenance), all the tunnels, one end of which is this planet, no longer work. As a consequence, for some other planet may disappear opportunity to get from one to another. We call the world, sub-stations which have described the property, important.
We explain more formally. Planet u is important, if, after the tunnels, one end of which is u, not work, there will be at least two such planets v and w, which can not be reached from v to w in the remaining tunnels.
Scheme is given hyperspace tunnels in this stellar system. Your task - to write a program that calculates the number of major planets in the star system.
Input
The first line contains n - number (1 ≤ n ≤ 100) of the planets in the star system. This is followed by (n-1) rows, each of which describes a tunnel and contains two numbers: u and v - number of planets, the corresponding tunnel connected (1 ≤ u, v ≤ n, u ≠ v).
Planets are labeled by natural numbers from 1 to n.
Output
In the output file output response to the problem - the number of major planets.