Fire Extinguisher Installation

No attempts yetTime limit1sMemory limit128 MB

Problem

Byteasar has built a new palace. It has NN rooms and N1N-1 corridors connecting them, and each corridor joins exactly two rooms. The rooms are numbered from 11 to NN, and the only entrance to the palace is room 11. Because there is exactly one path from the entrance to every other room, the rooms form a tree.

The fire chief wants to place fire extinguishers throughout the palace under the following rules.

  • An extinguisher is placed inside a room, and a room may hold any number of them.
  • A single extinguisher can protect at most SS rooms chosen from those it can reach through at most KK corridors (the rooms whose distance from it is at most KK). The set of rooms it actually protects is called that extinguisher's coverage area.
  • Every room must belong to the coverage area of at least one extinguisher.

Having spent almost his entire budget on the palace, Byteasar wants to protect every room while using as few extinguishers as possible. Find the minimum number of extinguishers required.

Input

The first line contains three integers NN, SS, and KK separated by spaces (1N1000001 \le N \le 100000, 1SN1 \le S \le N, 1K201 \le K \le 20).

Each of the next N1N-1 lines contains two integers xx and yy separated by a space, meaning there is a corridor connecting room xx and room yy.

Output

Print the minimum number of fire extinguishers required, on a single line.

Hint