Ivan and Sergey were invited to participate in a regional informatics olympiad.
Since they live in different towns, Ivan suggested taking a taxi to get to the olympiad venue.
The taxi departs from point , where Ivan lives, heads to point to pick up Sergey, and then continues to point , where the olympiad takes place.
Given the distances between towns and the cost per kilometer of a taxi ride, determine how much more expensive the trip will be if the taxi picks up Sergey compared to going directly to the olympiad venue. It is assumed that the taxi always chooses the shortest available route.
The first line contains five numbers: four integers and one real number:
— the number of towns,
— the number of the town where Ivan lives,
— the number of the town where Sergey lives,
— the number of the town where the olympiad takes place,
— the cost of traveling one kilometer by taxi.
The second line contains an integer — the number of roads.
Then follow lines, each describing one road: two integers representing the towns the road connects, and one real number — the length of the road in kilometers.
All town numbers are positive integers not exceeding .
Print one real number — the extra cost of the trip if the taxi picks up Sergey, compared to going directly to the olympiad venue.
If there is no route from point to point or from point to point , print .

Example 1