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 <iostream>
#include <cstdio>
#include <vector>
#include <set>
#include <map>
#include <queue>
#include <deque>
#include <stack>
#include <algorithm>
#include <cstring>
#include <functional>
#include <cmath>
#include <complex>
using namespace std;
#define rep(i,n) for(int i=0;i<(n);++i)
#define rep1(i,n) for(int i=1;i<=(n);++i)
#define all(c) (c).begin(),(c).end()
#define fs first
#define sc second
#define pb push_back
#define show(x) cout << #x << " " << x << endl
typedef double D;
typedef complex<D> P;
typedef pair<P,P> L;
typedef vector<P> Pol;
int N;
Pol pol;
D s;
L edges[50];
D eps=1e-50;
inline D cro(P a,P b){
	return imag(conj(a)*b);
}
D aPol(Pol p){
	D ret=0;
	int n=p.size();
	rep(i,n) ret+=cro(p[i],p[(i+1)%n])/2;
	return ret;
}
P gpol(Pol p){
	P g;
	s=aPol(p);
	int n=p.size();
	rep(i,n){
		D ds=cro(p[i],p[(i+1)%n])/2;
		g+=ds/3*(p[i]+p[(i+1)%n]);
	}
	return g/s;
}
bool iLS(L l,L s){
	return cro(l.sc-l.fs,s.fs-l.fs)*cro(l.sc-l.fs,s.sc-l.fs)<eps;
}
P intLL(L a,L b){
	D t=cro(a.sc-a.fs,a.sc-b.fs)/cro(a.sc-a.fs,b.sc-b.fs);
	return b.fs+t*(b.sc-b.fs);
}
D pi=acos(-1.0);
vector<D> args,thetas;
int main(){
	cin>>N;
	rep(i,N){
		D x,y;
		cin>>x>>y;
		pol.pb(P(x,y));
	}
	rep(i,N){
		edges[i]=L(pol[i],pol[(i+1)%N]);
	}
	P g=gpol(pol);
	rep(i,N){
		args.pb(arg(pol[i]-g));
	}
	rep(i,N) rep(j,i+1){
		thetas.pb((args[i]+args[j])/2+1e-9);
		thetas.pb((args[i]+args[j])/2-1e-9);
	}
	for(D theta:thetas){
		L l=L(g,g+polar(1.0,theta));
		Pol npol;
		rep(i,N){
			if(iLS(l,edges[i])){
				npol.pb(intLL(edges[i],l));
				npol.pb(pol[(i+1)%N]);
				for(int j=i+1;;j++){
					if(j==N) j=0;
					if(iLS(l,edges[j])){
						npol.pb(intLL(edges[j],l));
						break;
					}else{
						npol.pb(pol[(j+1)%N]);
					}
				}
				break;
			}
		}
		if(abs(s/aPol(npol)-2)>1e-9){
			puts("NA");
			return 0;
		}
	}
	printf("%.12f %.12f\n",g.real(),g.imag());
}