#include <bits/stdc++.h>
using namespace std;
template <typename T>
inline void read(T &x) {
  x = 0;
  char c = getchar(), f = 0;
  for (; c < '0' || c > '9'; c = getchar())
    if (c == '-') f = 1;
  for (; c >= '0' && c <= '9'; c = getchar())
    x = (x << 1) + (x << 3) + (c ^ 48);
  if (f) x = -x;
}
struct edge {
  int to, nxt;
} e[200005];
int et, head[100005], n, K, P, tn[100005], d[100005];
inline void adde(int x, int y) { e[++et] = (edge){y, head[x]}, head[x] = et; }
inline void dfs0(int x, int fa) {
  d[x] = d[fa] + 1;
  for (int i = head[x]; i; i = e[i].nxt)
    if (e[i].to != fa) dfs0(e[i].to, x);
}
int main() {
  read(n), read(K), read(P), K = min(K, n);
  for (int i = 1, x, y; i < n; i++) read(x), read(y), adde(x, y), adde(y, x);
  dfs0(1, 0), sort(d + 1, d + n + 1);
  int l = 2, r = 2, nwp = 0, res = 1;
  for (; l < n && r < n; res = max(res, r - l + 1)) {
    r++;
    if (d[r] ^ d[r - 1]) nwp += r - l;
    while (nwp > P || r - l + 1 > K) nwp -= d[r] - d[l], l++;
  }
  return printf("%d\n", res), 0;
}

### Prompt

In cpp, your task is to solve the following problem:

Mashmokh is playing a new game. In the beginning he has k liters of water and p coins. Additionally he has a rooted tree (an undirected connected acyclic graph) that consists of m vertices. Each vertex of the tree contains a water tank that is empty in the beginning.

The game begins with the fact that Mashmokh chooses some (no more than k) of these tanks (except the root) and pours into each of them exactly 1 liter of water. Then the following process is performed until there is no water remained in tanks.

  * The process consists of several steps. 
  * At the beginning of each step Mashmokh opens doors of all tanks. Then Mashmokh closes doors of some tanks (he is not allowed to close door of tank in the root) for the duration of this move. Let's denote the number of liters in some tank with closed door as w, Mashmokh pays w coins for the closing of that tank during this move. 
  * Let's denote by x1, x2, ..., xm as the list of vertices of the tree sorted (nondecreasing) by their depth. The vertices from this list should be considered one by one in the order. Firstly vertex x1 (which is the root itself) is emptied. Then for each vertex xi (i > 1), if its door is closed then skip the vertex else move all the water from the tank of vertex xi to the tank of its father (even if the tank of the father is closed). 



Suppose l moves were made until the tree became empty. Let's denote the amount of water inside the tank of the root after the i-th move by wi then Mashmokh will win max(w1, w2, ..., wl) dollars. Mashmokh wanted to know what is the maximum amount of dollars he can win by playing the above game. He asked you to find this value for him.

Input

The first line of the input contains three space-separated integers m, k, p (2 ≤ m ≤ 105; 0 ≤ k, p ≤ 109). 

Each of the following m - 1 lines contains two space-separated integers ai, bi (1 ≤ ai, bi ≤ m; ai ≠ bi) — the edges of the tree.

Consider that the vertices of the tree are numbered from 1 to m. The root of the tree has number 1.

Output

Output a single integer, the number Mashmokh asked you to find.

Examples

Input

10 2 1
1 2
1 3
3 4
3 5
2 6
6 8
6 7
9 8
8 10


Output

2


Input

5 1000 1000
1 2
1 3
3 4
3 5


Output

4

Note

The tree in the first sample is shown on the picture below. The black, red, blue colors correspond to vertices with 0, 1, 2 liters of water.

<image>

One way to achieve the maximum amount of money is to put 1 liter of water in each of vertices 3 and 4. The beginning state is shown on the picture below.

<image>

Then in the first move Mashmokh will pay one token to close the door of the third vertex tank. The tree after the first move is shown on the picture below.

<image>

After the second move there are 2 liters of water in the root as shown on the picture below.

<image>

### Response

```cpp
#include <bits/stdc++.h>
using namespace std;
template <typename T>
inline void read(T &x) {
  x = 0;
  char c = getchar(), f = 0;
  for (; c < '0' || c > '9'; c = getchar())
    if (c == '-') f = 1;
  for (; c >= '0' && c <= '9'; c = getchar())
    x = (x << 1) + (x << 3) + (c ^ 48);
  if (f) x = -x;
}
struct edge {
  int to, nxt;
} e[200005];
int et, head[100005], n, K, P, tn[100005], d[100005];
inline void adde(int x, int y) { e[++et] = (edge){y, head[x]}, head[x] = et; }
inline void dfs0(int x, int fa) {
  d[x] = d[fa] + 1;
  for (int i = head[x]; i; i = e[i].nxt)
    if (e[i].to != fa) dfs0(e[i].to, x);
}
int main() {
  read(n), read(K), read(P), K = min(K, n);
  for (int i = 1, x, y; i < n; i++) read(x), read(y), adde(x, y), adde(y, x);
  dfs0(1, 0), sort(d + 1, d + n + 1);
  int l = 2, r = 2, nwp = 0, res = 1;
  for (; l < n && r < n; res = max(res, r - l + 1)) {
    r++;
    if (d[r] ^ d[r - 1]) nwp += r - l;
    while (nwp > P || r - l + 1 > K) nwp -= d[r] - d[l], l++;
  }
  return printf("%d\n", res), 0;
}

```