Find the centroid#10158

Find the centroid

1 second
128 megabytes
Very easy

Find any centroid in the tree.

Input

The first line contains one integer n~(1 \le n \le 2 \cdot 10^5) — the number of vertices. Each of the following n − 1 lines contains two integers v_i and u_i~(1 \le v_i, u_i \le n) — vertices connected by an edge.

It is guaranteed that the graph is a tree.

Output

Print the number of a vertex that is a centroid. If there are multiple centroids, print any one of them.

Examples

Example 1

Loading
Loading