The input is a single test case in the following format.
N M P s t
v1 u1 d1 c1
...
vM uM dM cM
The first line holds five integers N, M, P, s, and t. N (2≤N≤200) is the number of vertices, M (1≤M≤2000) is the number of edges, P (0≤P≤106) is the budget you may spend, and s and t (1≤s,t≤N, s=t) are the start and the end vertex of the path.
Each of the next M lines holds four integers vi, ui, di, and ci. There is an edge from vi to ui (1≤vi,ui≤N, vi=ui) whose initial length is di (1≤di≤10) and whose unit price is ci (1≤ci≤10).