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;
template <typename T>
inline bool chkmin(T& x, T y) {
  return x > y ? x = y, 1 : 0;
}
template <typename T>
inline bool chkmax(T& x, T y) {
  return x < y ? x = y, 1 : 0;
}
inline char gc() {
  static char buf[1 << 16], *S, *T;
  if (S == T) {
    T = (S = buf) + fread(buf, 1, 1 << 16, stdin);
    if (S == T) return EOF;
  }
  return *S++;
}
template <typename T>
inline void read(T& x) {
  char c;
  int sign = 1;
  x = 0;
  do {
    c = getchar();
    if (c == '-') sign = -1;
  } while (!isdigit(c));
  do {
    x = x * 10 + c - '0';
    c = getchar();
  } while (isdigit(c));
  x *= sign;
}
const int N = 1e6 + 50;
int n, k;
int head[N], nxt[N << 1], to[N << 1], w[N << 1], tot;
inline void add(int x, int y) {
  to[tot] = y;
  nxt[tot] = head[x];
  head[x] = tot++;
}
int f[N], g[N];
int deep[N];
void dfs(int x, int fa) {
  if (nxt[head[x]] == -1) g[x] = deep[x], f[x] = 1;
  for (register int i = head[x]; ~i; i = nxt[i])
    if (to[i] != fa) {
      deep[to[i]] = deep[x] + 1;
      dfs(to[i], x);
      if (g[x]) {
        if (g[x] + g[to[i]] - 2 * deep[x] <= k) {
          f[x] = f[to[i]] + f[x] - 1;
          g[x] = max(g[to[i]], g[x]);
        } else {
          f[x] = f[to[i]] + f[x];
          g[x] = min(g[to[i]], g[x]);
        }
      } else
        f[x] = f[to[i]], g[x] = g[to[i]];
    }
}
int main() {
  memset(head, -1, sizeof head);
  read(n);
  read(k);
  for (register int i = 2; i <= n; ++i) {
    int u, v;
    read(u);
    read(v);
    add(u, v);
    add(v, u);
  }
  int rt = 1;
  while (nxt[head[rt]] == -1) ++rt;
  dfs(rt, 0);
  cout << f[rt] << endl;
  return 0;
}