Determine the number of vertex pairs at a distance of exactly .
Note that pairs and are considered the same.
The first line contains two integers and (1 \le n \le 2 \cdot 10^5, 1 \le l \le 10^6) — the number of vertices and the required distance.
Each of the next n - 1 lines contains three integers v_i, u_i, and t_i (1 \le u_i, v_i \le n, v_i \ne u_i, 0 \le t_i \le 10^6), denoting a road with length t_i between cities v_i and u_i.
Print the number of vertex pairs at a distance of exactly .
Example 1
Example 2