Micro has a tree with nodes. Micro can perform some operations on the tree. In one operation he can select a node and remove it along with the entire subtree rooted at it, from its current position and attach it as child of some other node. He defines a function on the tree, as the minimum number of operations needed to be done to make a straight chain of nodes out of the given tree, when the tree is rooted at node . Now Micro wants to find out the minimum of all the where 1 \leq i \leq n.
First line consists of a single integer denoting (1 \leq n \leq 16). Following n - 1 lines consist of two space separated integers and (1 \leq x, y \leq n) denoting there is an edge between nodes and .
Print the required answer.
Example 1