You are given a tree that consists of n vertex. In this tree, vertex 1 is the root vertex. Here, leveli is defined as a set of vertex where the distance of the vertexes from the root vertex is equal to i.
You are required to remove at most k levels of the tree in such a manner that after removing the vertexes, the maximum size of the recently-created components is minimum.
Input format
Output format
Print the required number.
In this test if we remove level 1, it creates componenets with sizes {1, 1, 3, 4}. but if we remove another levels it creates components with a size of bigger than 4. so the answer is 4.