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>
#pragma comment(linker, "/stack:200000000")
#pragma GCC optimize("Ofast")
#pragma target("sse,sse2,sse3,ssse3,sse4,popcnt,abm,mmx,avx,tune=native")
using namespace std;
inline long long read() {
  long long t = 0, dp = 1;
  char c = getchar();
  while (!isdigit(c)) {
    if (c == '-') dp = -1;
    c = getchar();
  }
  while (isdigit(c)) t = t * 10 + c - 48, c = getchar();
  return t * dp;
}
inline void write(long long x) {
  if (x < 0) {
    putchar('-');
    x = -x;
  }
  if (x >= 10) write(x / 10);
  putchar(x % 10 + 48);
}
inline void writeln(long long x) {
  write(x);
  puts("");
}
inline void write_p(long long x) {
  write(x);
  putchar(' ');
}
const int N = 2e6 + 20;
int poi[N], nxt[N], head[N], dp[N], mx[N], n, k, rt, cnt, in[N];
inline void add(int x, int y) {
  poi[++cnt] = y;
  nxt[cnt] = head[x];
  head[x] = cnt;
  poi[++cnt] = x;
  nxt[cnt] = head[y];
  head[y] = cnt;
  in[x]++;
  in[y]++;
}
inline void Dfs(int x, int fa) {
  if (in[x] == 1) dp[x] = 1;
  vector<int> tmp;
  for (int i = head[x]; i; i = nxt[i]) {
    if (poi[i] == fa) continue;
    Dfs(poi[i], x);
    tmp.push_back(mx[poi[i]] + 1);
    dp[x] += dp[poi[i]];
  }
  if (tmp.empty()) return;
  sort(tmp.begin(), tmp.end());
  int siz = (int)tmp.size();
  if (siz > 1) {
    for (int i = siz - 1; i >= 1; --i)
      if (tmp[i] + tmp[i - 1] <= k) {
        dp[x] -= i;
        mx[x] = tmp[i];
        break;
      }
    if (!mx[x]) mx[x] = tmp[0];
  } else
    mx[x] = tmp[0];
}
int main() {
  n = read();
  k = read();
  for (int i = 1; i <= n - 1; ++i) add(read(), read());
  for (int i = 1; i <= n; ++i)
    if (in[i] != 1) rt = i;
  Dfs(rt, rt);
  writeln(dp[rt]);
}