eolymp
bolt
Try our new interface for solving problems
Problems

Point of medians intersection

Point of medians intersection

Find the intersection point of medians in 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 the pairs of integers not exceeding 104 by absolute value.

Output

Print two numbers - the coordinates of the point of intersection of the medians of this triangle with an accuracy of 6 digits after the decimal point.

Time limit 1 second
Memory limit 128 MiB
Input example #1
0 0
3 0
3 6
Output example #1
2.0 2.0