Point of medians intersection
Execution time limit is 1 second
Runtime memory usage limit is 128 megabytes
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 10^4
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.
Examples
Input #1
Answer #1
Submissions 1K
Acceptance rate 44%