The spider-male and the spider-female sail along the lake on two twigs. They do not know how to swim, so they can only meet when the twigs come in contact.

Considering that the twigs are in the form of segments, and that they sail at constant speeds, determine how long it will take the arthropods to meet.
Contains numbers: x_1, y_1, x_2, y_2, x_3, y_3, x_4, y_4, v_{1x}, v_{1y}, v_{2x}, v_{2y}. The vertex coordinates of the first segment are (x_1, y_1) and (x_2, y_2); the vertex coordinates of the second segment are (x_3, y_3) and (x_4, y_4); the speed of the first segment is (v_{1x}, v_{1y}); the speed of the second segment is (v_{2x}, v_{2y}). All numbers are integers, not exceeding 10^4 by absolute value. At the initial time, the twigs do not touch.
It is guaranteed that the twigs have nonzero length.
Print the time to the nearest moment when the twigs come into contact, with an error of no more than 10^{-4}. If the twigs never come in contact, print the number -1.
Example 1
Example 2