In ICPCCamp, there are n cities and m unidirectional roads between cities.
The i-th road goes from the

-th city to the

-th city.
For each pair of cities u and v, there is at most one road from u to v.
As traffic in ICPCCamp is becoming heavier, toll of the roads also varies.
At time t, one should pay
)
dollars to travel along the i-th road.
Bobo living in the 1-st city would like to go to the n-th city.
He wants to know the average money he must spend at least if he starts from city 1 at

.
Note that since Bobo's car is super-fast, traveling on the roads costs him **no time**.
Formally, if f(t) is the minimum money he should pay from city 1 to city n at time t,
Bobo would like to find
%20%5Cmathrm%7Bd%7Dt%7D%7BT%7D.)