You are given a tree consisting of N vertices. What is the minimum number of vertices that should be removed such that all the remaining parts of the initial tree contain less than K vertices?
Input format
Output format
Print one number denoting the answer to the question.
Constraints
1≤K, N≤10000ai<i
We can remove vertices 2, 3, 6.