Sniper Shot
There is a sniper at point S. His mission is to eliminate an enemy of the state, who rides his bicycle along a straight line from point A to point B. The bullet flies along a striaght line with infinite speed. There are n rectangular parallelepiped-shaped skyscrapers in the city. The bullet can't fly through the skyscraper but can touch its border. Of course, the sniper will make a deadly shot as soon as possible.
Your task is to calculate the coordinates of the enemy at the moment of the shot.
Input
The first line contains space-separated coordinates of S: s_x, s_y, s_z (s_z ≥ 0). The second line contains space-separated coordinates of points A and B: a_x, a_y, b_x, b_y. The enemy of the state moves on the surface of earth, so his z-coordinate is always equal to zero. The third line containts an integer n (0 ≤ n ≤ 100). Each of the following n lines contains space-separated numbers l_x, l_y, r_x, r_y, h (l_x < r_x; l_y < r_y; h > 0) — coordinates of the opposite corners of the bottom of the current skyscraper and its height. The sides of the skyscrapers are parallel to the corrdinate axes. All coordinates and heights are integers and don't exceed 100 by their absolute values. It is guaranteed that no two skyscrapers have common points, the point S doesn't lie inside or on the border of the skyscraper and the segment AB doesn't have common points with any of the skyscrapers.
Output
If the enemy of the state cannot be eliminated, output "Impossible". In the other case output the coordinates of the enemy of the state precise up to 10^{−7}.