Given a tree with vertices, your task is to determine the maximum number of edges that can be removed such that every resulting connected component has an even number of vertices.
The first line contains a single integer (1 \leq n \leq 10^5).
The following n - 1 lines each contain two integers and (1 \leq u, v \leq n), representing an edge between vertices and .
It is guaranteed that the input describes a valid tree.
Print a single integer , which is the maximum number of edges that can be removed to ensure all connected components have an even number of vertices. If it is not possible to achieve this, print .
Example 1
Example 2
Example 3
Example 4