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;
const int N = 1e6 + 10;
int k, ecnt, cnt[N], first[N];
struct Edge {
  int to, next;
} e[2 * N];
multiset<int> val[N];
void Eadd(int a, int b) {
  e[++ecnt].to = b;
  e[ecnt].next = first[a];
  first[a] = ecnt;
  e[++ecnt].to = a;
  e[ecnt].next = first[b];
  first[b] = ecnt;
}
void dfs(int v, int d, int p) {
  if (cnt[v] == 1) {
    val[v].insert(d);
    return;
  }
  int bst = -1;
  for (int i = first[v], u; i; i = e[i].next)
    if ((u = e[i].to) != p) {
      dfs(u, d + 1, v);
      if (bst == -1 || val[u].size() > val[bst].size()) bst = u;
    }
  swap(val[v], val[bst]);
  for (int i = first[v], u; i; i = e[i].next)
    if ((u = e[i].to) != p && u != bst)
      for (auto it : val[u]) {
        int len = k + d + d - it;
        auto jt = val[v].upper_bound(len);
        if (jt == val[v].begin()) {
          val[v].insert(it);
        } else {
          --jt;
          int t = max(it, *jt);
          val[v].erase(jt);
          val[v].insert(t);
        }
      }
}
int main() {
  int n;
  scanf("%d %d", &n, &k);
  for (int i = 1, v, u; i < n; ++i) {
    scanf("%d %d", &v, &u);
    Eadd(v, u);
    ++cnt[v];
    ++cnt[u];
  }
  for (int i = 1; i <= n; ++i)
    if (cnt[i] != 1) {
      dfs(i, 0, -1);
      printf("%d", val[i].size());
      break;
    }
  return 0;
}