There is a country with N cities. All these cities are connected by weighted roads such that there is one simple route between any two cities.
Consider all simple paths which contain between L and R roads (both inclusive). Your task is to find the path among them which has the minimum possible k-value.
The k-value of a simple path is calculated as follows. Let the number of roads in the path be r. Take the list of weights of all r roads in the path and sort it in non-descending order. The k-value is then the element number (⌊r/k⌋+1) of this list.
The first line of input contains a single integer N (1≤N≤105). Each of the following (N−1) lines contains three integers a, b and w which represent two cities connected by a road and the weight of the road (1≤a,b≤N, a=b, 1≤w≤109).
The next line contains three integers k, L and R (1<k<50, 1≤L≤R≤50).
Print the minimum possible k-value of a path which contains between L and R roads, inclusive. If no such path exists, print −1.