Sanjindra is close to finding the All Blue and fulfilling their dream! However, there remains yet one obstacle in their path: a treacherous portion of the Calm Belt filled with evil sea monsters. Sanjindra knows that their ship, the Thousand Sunny, is strong and can take less than points of damage before that it will sink.
The portion of the Calm Belt can be modelled as a graph with nodes, connected by routes. Each route has a two endpoints ( and ), a distance (), and the damage the sea monsters will do ().
As Namindra, the navigator of the ship, it is your job to find the shortest route from nodes to which takes less than points of damage. Can you help Sanjindra with this task?
Input Format
The first line of input will consist of 3 integers, . Each of the next lines will consist of 4 integers and , as described in the description. Finally, the last line will contain two integers and , the point Sanjindra starts and wants to end.
Output Format
The output should consist of a single integer, the minimum length of the path if it is possible, or 1 if it is not.
Constraints
Sample Input
10 4 7
0 1 4 4
0 2 7 2
2 0 8 1
2 1 2 2
3 1 1 6
2 3 1 1
0 3 6 12
0 3
Sample Output
7
Comments