Intersection Point of Altitudes#5187

Intersection Point of Altitudes

1 second
128 megabytes
Easy

Find the intersection point of altitudes for the given triangle.

Input

The coordinates of the three vertices of triangle (first the coordinates of the first vertex, then the second, then the third). Coordinates are pairs of integers, each not exceeding 10^4 in absolute value.

Output

Print two numbers representing the coordinates of the intersection point of the triangle's altitudes with an accuracy of at least decimal digits.

Examples

Example 1

Loading
Loading