There is a country consisting of cities numbered with integer numbers from to with values , and bidirectional roads connecting them, such that we can travel between any two cities using these roads. In other words, these cities and roads form a tree.
The president has assigned tasks to people, and each person has to visit a city from their current city to complete their work. However, due to the long travel distances, the president allows them to relax at cities having value The workers have come to you seeking assistance in determining the maximum number of cities where they can relax. Your task is to help them find the maximum number of cities where they can relax.
Input format
Output format
For each task, print the maximum number of cities where they can relax in a new line.
Constraints