A continuous function is defined on . Its graph is a polyline joining the origin and the points in the given order.
Draw a line through the origin, . Find a slope such that the total length of the parts of satisfying each of the following inequalities is the same:
The parts where the two functions are equal contribute to neither length.
If such a slope exists, output its real value . It may be irrational. Otherwise, print -1.
The input is given in the following format:
If a valid slope exists, print one real number on one line. Your answer is accepted if its absolute or relative error does not exceed .
If no valid slope exists, print -1. This token is a special indication that no solution exists.
The starting point is . The values are strictly increasing, and .