There are N cities that are connected by N−1 roads. K cities have bus terminals and other N−K cities have bus stops. A bus terminus is a designated place where a bus starts or ends its scheduled route.
A bus should start from a terminal and must end its journey at another terminal visiting any city at most once. A city is crowded if there is a bus service in the city where one or more than one bus visits it along any route. You are required to simulate the routes for the buses so that the maximum number of cities is crowded. You can assume there is a number of buses ready for service from each terminus.
Note:
Input format
Output format
Print the number of cities that are crowded after all simulations.
Constraints
1≤N≤200000
1≤K,u,v≤N
It is guaranteed that it is possible to reach from one city to another city.
It is possible to simulate a bus route starting from terminus 1 to terminus 4 or 5 thereby making city 2, a crowded city. But it is impossible to make city 3 crowded.