Problem: A convex polygon consisting of N vertices is given. The coordinates of each vertex are represented counterclockwise by (X1, Y1), (X2, Y2), ……, (XN, YN). No matter what straight line passes through the point P, find the coordinates of the point P so that the areas of the two convex polygons obtained after cutting are equal.

Constraints

* All inputs are integers

* 3 ≤ N ≤ 50

* 0 ≤ | Xi |, | Yi | ≤ 1000000

* The input polygon is a simple convex polygon.

* The output must satisfy max (| X-cX |, | Y-cY |) ≤ 0.0001 when the output coordinates are (X, Y) and the exact solution is (cX, cY).

Input

The input is given in the following format.

> N
> X1 Y1
> X2 Y2
> ……
> XN YN
>

Output

If there is a point that satisfies the condition of the problem statement, the coordinates of that point

> X Y
>

Output in the format of. If the point does not exist, output "NA" on one line.

Examples

Input

4
100 100
0 100
0 0
100 0


Output

50.00000 50.00000


Input

3
100 100
0 100
0 0


Output

NA

Solution (in CPP):

Solution:
#include <queue>
#include <iostream>
#include <map>
#include <vector>
#include <string>
#include <algorithm>
#include <iomanip>

using namespace std;

#define rep(i,n) for(int i = 0;i < n;i++)

#include <complex>

typedef double D;
typedef complex<D> P;
typedef pair<P, P> L;
typedef vector<P> VP;

#define X real()
#define Y imag()

const D EPS = 1e-9;
const D INF = 1e12;

#define EQ(n,m) (abs((n) - (m)) < EPS)
#define EX P(INF,INF)

D cs(P a, P b) {
	return (conj(a) * b).Y;
}

D dt(P a, P b) {
	return (conj(a) * b).X;
}

int ccw(P a, P b, P c) {
	b -= a, c -= a;
	if (cs(b, c) > EPS)return 1;
	if (cs(b, c) < -EPS)return -1;
	if (dt(b, c) < -EPS)return +2;
	if (norm(b) < norm(c))return -2;
	return 0;
}

P cpLL(P a1, P a2, P b1, P b2) {
	D d1 = cs(b2 - b1, b1 - a1);
	D d2 = cs(b2 - b1, a2 - a1);
	if (EQ(d2, 0))return EX;
	return a1 + d1 / d2 * (a2 - a1);
}

bool isor(P a1, P a2, P b1, P b2) {
	return EQ(dt(a1 - a2, b1 - b2), 0.0);
}
bool ispa(P a1, P a2, P b1, P b2) {
	return EQ(cs(a1 - a2, b1 - b2), 0.0);
}

int main() {
	int n;
	cin >> n;
	VP v;
	D tx = 0.0, ty = 0.0;
	rep(i, n) {
		D x, y;
		cin >> x >> y;
		v.push_back(P(x, y));
		tx += x; ty += y;
	}
	tx /= double(n), ty /= double(n);
	if (n % 2) {
		cout << "NA" << endl;
		return 0;
	}
	int h = n / 2;
	rep(i, h) {
		L l0 = L(v[i], v[i + 1]);
		L l1 = L(v[(i + h) % n], v[(i + h + 1) % n]);
		
		double dist0 = abs(l0.first - l0.second);
		double dist1 = abs(l1.first - l1.second);

		if (!EQ(dist0, dist1) ||
			!ispa(l0.first, l0.second, l1.first, l1.second)) {
			cout << "NA" << endl;
			return 0;
		}
	}
	cout << fixed << setprecision(30) << tx << " " << ty << endl;

	return 0;
}