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
//------------------------------------------
#include <vector>
#include <list>
#include <map>
#include <set>
#include <deque>
#include <stack>
#include <bitset>
#include <algorithm>
#include <functional>
#include <numeric>
#include <utility>
#include <sstream>
#include <iostream>
#include <iomanip>
#include <cstdio>
#include <cmath>
#include <cstdlib>
#include <cctype>
#include <string>
#include <cstring>
#include <ctime>
#include <climits>
#include <queue>

using namespace std;

//typedef
//------------------------------------------
typedef vector<int> VI;
typedef vector<VI> VVI;
typedef vector<string> VS;
typedef pair<int, int> PII;
typedef long long LL;

//container util
//------------------------------------------
#define ALL(a)  (a).begin(),(a).end()
#define RALL(a) (a).rbegin(), (a).rend()
#define PB push_back
#define MP make_pair
#define SZ(a) int((a).size())
#define EACH(i,c) for(typeof((c).begin()) i=(c).begin(); i!=(c).end(); ++i)
#define EXIST(s,e) ((s).find(e)!=(s).end())
#define SORT(c) sort((c).begin(),(c).end())

//repetition
//------------------------------------------
#define FOR(i,a,b) for(int i=(a);i<(b);++i)
#define REP(i,n)  FOR(i,0,n)

//constant
//--------------------------------------------
const double EPS = 1e-6;
const double PI  = acos(-1.0);

struct P{
  double x;
  double y;

  P(){
  }

  P(const double &s , const double &e)
  { x=s; y=e;}

  P operator - (const P &t) const
  { return P(x-t.x , y-t.y); }

  P operator + (const P &t) const
  { return P(x+t.x , y+t.y); }

  P operator * (const double &d) const
  { return P(x*d , y*d); }

};
double cross(P a,P b){
  return (a.x*b.y-a.y*b.x);
}
P interpoint_s(P a1 , P a2 , P b1 , P b2){
  P b=b2-b1;
  double d1=fabs(cross(b , a1-b1));
  double d2=fabs(cross(b , a2-b1));
  double t=d1 / (d1 + d2);
  P a=a2-a1;
  P v=a*t;
  return a1+v;
}

bool diff(P p, P q){
  return abs(p.x - q.x) >= EPS || abs(p.y - q.y) >= EPS;
}

int main(){
  cin.tie(0);
  ios_base::sync_with_stdio(false);

  int N; cin >> N;
  vector<P> ps(N);
  REP(i,N) cin >> ps[i].x >> ps[i].y;

  bool ok = true;
  P p;
  if(N < 4 || N%2) ok = false;
  else{
	int D = N / 2;
	p = interpoint_s(ps[0], ps[D], ps[1], ps[D+1]);
	for(int i=1;i<D;++i){
	  P q = interpoint_s(ps[0], ps[D], ps[i], ps[i+D]);
	  if(diff(p,q)){
		ok = false; break;
	  }
	}
  }
  if(!ok) cout << "NA" << endl;
  else cout << fixed << setprecision(9) << p.x << " " << p.y << endl;
  
  return 0;
}