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 + 5;
template <typename T>
bool cmax(T &a, T b) {
  return (a < b) ? a = b, 1 : 0;
}
template <typename T>
bool cmin(T &a, T b) {
  return (a > b) ? a = b, 1 : 0;
}
template <typename T>
T read() {
  T ans = 0, f = 1;
  char ch = getchar();
  while (!isdigit(ch) && ch != '-') ch = getchar();
  if (ch == '-') f = -1, ch = getchar();
  while (isdigit(ch))
    ans = (ans << 3) + (ans << 1) + (ch - '0'), ch = getchar();
  return ans * f;
}
template <typename T>
void write(T x, char y) {
  if (x == 0) {
    putchar('0'), putchar(y);
    return;
  }
  if (x < 0) {
    putchar('-');
    x = -x;
  }
  static char wr[20];
  int top = 0;
  for (; x; x /= 10) wr[++top] = x % 10 + '0';
  while (top) putchar(wr[top--]);
  putchar(y);
}
void file() {}
int n, k;
vector<int> E[N];
int d[N];
void input() {
  int x, y;
  n = read<int>(), k = read<int>();
  for (register int i = (int)(2); i <= (int)(n); ++i) {
    x = read<int>(), y = read<int>();
    E[x].push_back(y), E[y].push_back(x);
    d[x]++, d[y]++;
  }
}
int dep[N], dp[N];
int q[N], top, ans;
void DP(int u, int pre) {
  dep[u] = dep[pre] + 1;
  if (d[u] == 1) {
    dp[u] = dep[u];
    return;
  }
  for (int v : E[u])
    if (v ^ pre) DP(v, u);
  top = 0;
  for (int v : E[u])
    if (v ^ pre) q[++top] = dp[v];
  sort(q + 1, q + top + 1);
  int pos = top;
  while (pos > 1 && q[pos] + q[pos - 1] - dep[u] * 2 > k) ans++, pos--;
  dp[u] = q[pos];
}
void work() {
  for (register int i = (int)(1); i <= (int)(n); ++i)
    if (d[i] > 1) {
      DP(i, 0);
      break;
    }
  write(ans + 1, '\n');
}
int main() {
  file();
  input();
  work();
  return 0;
}