Intersection Of Tangents

아직 제출이 없습니다시간 제한2초메모리 제한1024 MB

문제

In this problem polygons are assumed to have no self-touchings or self-intersections.

A tangent to a polygon is a straight line that contains at least one point on the boundary of the polygon, and none of its interior points.

You are given a polygon with integer vertex coordinates. The polygon is not necessarily convex. Find a point with integer coordinates such that there exist two tangents to this polygon which both pass through this point and intersect at 90^{\circ}. It is guaranteed that at least one solution exists. If there are multiple solutions, output any of them.

입력

The first line of input contains a single integer nn (3n10003 \leq n \leq 1000) --- the number of vertices in the polygon.

nn lines follow describing the vertices of the polygon. ii-th of them contains two integers x_ix\_i and y_iy\_i (108x_i,y_i108-10^8 \leq x\_i, y\_i \leq 10^8) --- the coordinates of ii-th vertex. The vertices are given in counter-clockwise order.

The polygon has no self-touchings or self-intersections. There are no three consecutive points which lie on the same line.

It is guaranteed that an answer exists.

출력

Output two integers xx and yy (109x,y109-10^9 \leq x, y \leq 10^9) --- the coordinates of the point you found.

힌트

Images for samples and some random photo.