#H2026A. A Problem on the Tree

A Problem on the Tree

Description

You have a tree with nn vertices. You also have a starting vertex ss on this tree.

You need to start from vertex ss and take at most kk steps. At each step, you can move to any adjacent vertex. You want to know how many different vertices can you pass through at most. (Including the starting vertex ss)

Input

First line has three integers, n,s,kn,s,k.

Next, we have n1n-1 lines. Each line contains two intergers ui,viu_i,v_i, means there has an edge between vertex uiu_i and viv_i.

Output

One line with one integer, means the maximum number of different vertices that can be passed through.

Sample Input

5 1 4
1 2
1 3
1 4
4 5

Sample Output

4

Tips

The figure shows a feasible solution. Take 44 steps, passed through 44 different vertices.

数据范围

1sn1061\leq s\leq n\leq 10^6

1k2×1061\leq k\leq 2\times 10^6