Center of gravity#880

Center of gravity

1 second
122.174 megabytes
Medium

Given the coordinates of the vertices of a simple polygon, find the coordinates of its center of gravity (centroid). The sides of the polygon only connect consecutive vertices (including the first and last), and do not intersect each other. The area of the polygon is nonzero.

Input

The first line contains the number of vertices (3 \leq n \leq 10^5). Each of the following lines contains a pair of integers — the coordinates of a point, each with absolute value not exceeding . If you connect the points in the given order, joining the first and last points as well, you obtain the polygon.

Output

Print two numbers, the coordinates of the centroid, each rounded to two digits after the decimal point.

Examples

Example 1

Loading
Loading

Example 2

Loading
Loading