A tree has N nodes, and the first node is the root node.
The first line is an integer N indicating the number of nodes.
For each of the next few lines, there are two integers, i.e., a, b. Note that b is a child of a.
Please output the height of this tree (note that the root node is the first layer).