Problem: You are given an undirected tree, consisting of n vertices.

The vertex is called a leaf if it has exactly one vertex adjacent to it.

The distance between some pair of vertices is the number of edges in the shortest path between them.

Let's call some set of leaves beautiful if the maximum distance between any pair of leaves in it is less or equal to k.

You want to split all leaves into non-intersecting beautiful sets. What is the minimal number of sets in such a split?

Input

The first line contains two integers n and k (3 ≤ n ≤ 10^6, 1 ≤ k ≤ 10^6) — the number of vertices in the tree and the maximum distance between any pair of leaves in each beautiful set.

Each of the next n - 1 lines contains two integers v_i and u_i (1 ≤ v_i, u_i ≤ n) — the description of the i-th edge. 

It is guaranteed that the given edges form a tree.

Output

Print a single integer — the minimal number of beautiful sets the split can have. 

Examples

Input

9 3
1 2
1 3
2 4
2 5
3 6
6 7
6 8
3 9


Output

2


Input

5 3
1 2
2 3
3 4
4 5


Output

2


Input

6 1
1 2
1 3
1 4
1 5
1 6


Output

5

Note

Here is the graph for the first example:

<image>

Solution (in CPP):

Solution:
#include <bits/stdc++.h>
using namespace std;
using ll = long long;
int const nmax = 1000000;
vector<int> g[1 + nmax];
pair<int, int> dp[1 + nmax];
void dfs(int node, int parent, int k) {
  for (int h = 0; h < g[node].size(); h++) {
    int to = g[node][h];
    if (to == parent) g[node].erase(g[node].begin() + h);
  }
  for (int h = 0; h < g[node].size(); h++) {
    int to = g[node][h];
    dfs(to, node, k);
  }
  if (g[node].size() == 0)
    dp[node] = {1, 0};
  else {
    vector<int> sol;
    int result = 1, dist = -nmax;
    for (int h = 0; h < g[node].size(); h++) {
      int to = g[node][h];
      sol.push_back(dp[to].second + 1);
      result += dp[to].first;
    }
    sort(sol.begin(), sol.end());
    for (int i = 0; i < sol.size(); i++) {
      if (dist + sol[i] <= k) {
        dist = sol[i];
        result--;
      }
    }
    dp[node] = {result, dist};
  }
}
int main() {
  ios::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  int n, k;
  cin >> n >> k;
  for (int i = 1; i < n; i++) {
    int x, y;
    cin >> x >> y;
    g[x].push_back(y);
    g[y].push_back(x);
  }
  for (int i = 1; i <= n; i++)
    if (1 < g[i].size()) {
      dfs(i, 0, k);
      cout << dp[i].first << '\n';
      return 0;
    }
  return 0;
}