#D10562. Tree Separator

    ID: 8778 Type: Default 2000ms 536MiB

Tree Separator

Tree Separator

You are given a tree TT and an integer KK. You can choose arbitrary distinct two vertices uu and vv on TT. Let PP be the simple path between uu and vv. Then, remove vertices in PP, and edges such that one or both of its end vertices is in PP from TT. Your task is to choose uu and vv to maximize the number of connected components with KK or more vertices of TT after that operation.

Input

The input consists of a single test case formatted as follows.

NN KK u1u_1 v1v_1 : uN1u_{N-1} vN1v_{N-1}

The first line consists of two integers N,KN, K (2N100,000,1KN2 \leq N \leq 100,000, 1 \leq K \leq N). The following N1N-1 lines represent the information of edges. The (i+1i+1)-th line consists of two integers ui,viu_i, v_i (1ui,viN1 \leq u_i, v_i \leq N and uiviu_i \ne v_i for each ii). Each ui,vi\\{u_i, v_i\\} is an edge of TT. It's guaranteed that these edges form a tree.

Output

Print the maximum number of connected components with KK or more vertices in one line.

Examples

Input

2 1 1 2

Output

0

Input

7 3 1 2 2 3 3 4 4 5 5 6 6 7

Output

1

Input

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

Output

4

Input

3 1 1 2 2 3

Output

1

Input

3 2 1 2 2 3

Output

0

Input

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

Output

2

inputFormat

Input

The input consists of a single test case formatted as follows.

NN KK u1u_1 v1v_1 : uN1u_{N-1} vN1v_{N-1}

The first line consists of two integers N,KN, K (2N100,000,1KN2 \leq N \leq 100,000, 1 \leq K \leq N). The following N1N-1 lines represent the information of edges. The (i+1i+1)-th line consists of two integers ui,viu_i, v_i (1ui,viN1 \leq u_i, v_i \leq N and uiviu_i \ne v_i for each ii). Each ui,vi\\{u_i, v_i\\} is an edge of TT. It's guaranteed that these edges form a tree.

outputFormat

Output

Print the maximum number of connected components with KK or more vertices in one line.

Examples

Input

2 1 1 2

Output

0

Input

7 3 1 2 2 3 3 4 4 5 5 6 6 7

Output

1

Input

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

Output

4

Input

3 1 1 2 2 3

Output

1

Input

3 2 1 2 2 3

Output

0

Input

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

Output

2

样例

3 2
1 2
2 3
0