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 double PI = acos(-1.0);
typedef tuple<int, int> i2;
typedef tuple<int, int, int> i3;
typedef tuple<int, int, int, int> i4;
typedef vector<int> vi;
typedef vector<i2> vi2;
typedef vector<i3> vi3;
typedef vector<i4> vi4;
typedef vector<vi> v2i;
typedef vector<vi2> v2i2;
typedef vector<string> vs;
typedef vector<long long> vll;
long long modPow(long long b, long long p, long long m) {
  b %= m;
  if (p <= 1) return p == 0 ? 1 : b;
  long long res = modPow(b * b, p / 2, m);
  return p % 2 == 0 ? res : (res * b) % m;
}
int k, res;
vi g[1234567];
int dfs(int cur, int p) {
  if (g[cur].size() < 2) return 0;
  priority_queue<int, vi, greater<int> > pq;
  for (int neigh : g[cur]) {
    if (neigh == p) continue;
    pq.push(dfs(neigh, cur) + 1);
  }
  while (pq.size() > 1) {
    int a = pq.top();
    pq.pop();
    int b = pq.top();
    pq.pop();
    if (a + b <= k)
      pq.push(b);
    else {
      pq.push(a);
      pq.push(b);
      break;
    }
  }
  res += pq.size() - 1;
  return pq.top();
}
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  int n;
  cin >> n >> k;
  int x;
  for (int i = 0; i < n - 1; ++i) {
    int a, b;
    cin >> a >> b;
    g[a].push_back(b);
    g[b].push_back(a);
    if (g[a].size() > 1) x = a;
    if (g[b].size() > 1) x = b;
  }
  dfs(x, -1);
  cout << res + 1 << '\n';
  return 0;
}