Cut a triangle
Given a triangle. Cut it with a straight line into two shapes so that the areas and perimeters of these two shapes are equal.
Input
Three rows of two integers each: , () are the coordinates of the vertices of the triangle. It is guaranteed that the triangle is non-degenerate.
Output
Two lines of two real numbers are the coordinates of the two points on the border of the triangle, through which the cut should be made.
The answer will be counted if each of the two points belongs to at least one side of the triangle, and the two figures obtained by cutting have equal area and equal perimeter. It is considered that a point belongs to a line, if the distance between them is not more than . The areas and perimeters of the figures must be equal with an absolute or relative error of .