Intersection Point of Altitudes#5187

Intersection Point of Altitudes

1 segundo
128 megabytes
Fácil

Find the intersection point of altitudes for the given triangle.

Entrada

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.

Salida

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

Ejemplos

Ejemplo 1

Loading
Loading