Guess the triangle

3.4

181 votes
Geometry, Open, Approved, Easy
Problem

See Russian translation

You are given 3 points - middles of the sides of some triangle. Find coordinates of the triangle vertices.

Input
Input has 3 lines with 2 space-separated reals each - coordinates of the middles of the sides.

Output
Output 3 lines with 2 space-separated reals - coordinates of the triangle vertices. Each number should have exactly 4 digits after dot. Vertices should be sorted in first coordinate ascending order. If two points have the same first coordinate than they should have second coordinate ascending order.

Constraints
0 <= xi, yi <= 1000

Time Limit: 1
Memory Limit: 256
Source Limit:
Editor Image

?