Grass Planting#10332

Grass Planting

1 second
128 megabytes
Very easy

It is the time of year for Farmer John to plant grass in all of his fields. The farm consists of fields, conveniently numbered from to and connected by n - 1 bidirectional pathways in such a way that every field can be reached from every other field.

Farmer John can plant a different type of grass in each field, but he wants to minimize the total number of grass types he uses, since the more types he uses, the higher his expenses.

Unfortunately, his cows have become rather picky about the grass on the farm. If the same grass type is planted in two adjacent fields (directly connected by a pathway) or even in two nearly adjacent fields (both directly connected by pathways to a common field), the cows will complain about the lack of variety in their dining options. The last thing Farmer John needs is complaining cows, given how much mischief they are known to cause when dissatisfied.

Help Farmer John determine the minimum number of grass types he needs for his entire farm.

Input

The first line contains an integer n~(1 \le n \le 10^5) — the number of fields. Each of the next n - 1 lines contains two integers and b~(1 \le a, b \le n), meaning that fields and are connected by a pathway.

Output

Print a single integer — the minimum number of grass types Farmer John needs to use.

Examples

Example 1

Loading
Loading

Note

In the example, the fields are connected in a line, and at least three grass types are needed. For instance, Farmer John can plant grass types , , and in the fields in order along the line.