You are given a tree (a simple connected graph without cycles).
Find the maximum number of edges you can remove from the tree to get a forest such that each connected component of the forest contains an even number of nodes.
As an example, the following tree with nodes can be cut at most time to create an even forest.
The first line contains two integers is even) and — the number of nodes and edges. The next lines contain two integers which specify the nodes connected by an edge of the tree. The root of the tree is node .
Print the maximum number of removed edges.