Two cars crashed on the road, receiving some damage each, and
raising the usual question: "Who to blame?". To answer this, it is essential to
thoroughly reconstruct the sequence of events. By gathering witness testimonies
and analyzing tire tracks, positions and speeds of cars just before the impact
were determined.
From these positions until the crash the cars moved straight forward.

Your program must, given the available data, calculate for each car
what part of it first came into contact with the other car. Parts are numbered as
shown on the picture.

Input file format

Input file contains twelve floating point numbers:
x_{1}y_{1}u_{1}v_{1}w_{1}s_{1}x_{2}y_{2}u_{2}v_{2}w_{2}s_{2}, where (x, y) and (u, v) — coordinates of
back-left and forward-left corners of the car, w — width of the car, s — speed of the car.

Output file format

Output file must contain two integers: p_{1}p_{2}, where p — number of part which
first contacted the other one (if two parts came into contact simultaneously,
output the lesser of the part numbers),

Constraints

1 ≤ x_{i}, y_{i}, u_{i}, v_{i}, w_{i} ≤ 10^{6}, 0 ≤ s_{i} ≤ 10^{6}.
Input data is such that a crash certainly happens. Initially cars don't have common points.