Problems
Point of heights intersection
Point of heights intersection
Find the intersection point of heights for given triangle.
Input data
The coordinates of the three vertices of triangle (first the coordinates of the first vertex, then the second, then the third). Coordinates are the pair of integers not exceeding 10^4
in absolute value.
Output data
Print two numbers - the coordinates of intersection point for triangle heights with an accuracy of at least 6 decimal digits.
Examples
Input example #1
0 0 3 0 0 4
Output example #1
0.0 0.0