#include <complex>
#include <iostream>
#include <cstdio>
#include <string>
#include <cmath>
#include <sstream>

class Point {
public:
	Point();
	Point(int x_in, int y_in);

	Point  operator+(const Point& obj);
	Point  operator-(const Point& obj);
	Point  operator*(const double n);
	Point  operator/(const double n);

	void set(int x_in, int y_in);

	double x;
	double y;
};

Point::Point() {
	x = 0;
	y = 0;
}

Point::Point(int x_in, int y_in) {
	x = x_in;
	y = y_in;
}

Point Point::operator+(const Point& obj) {
	Point temp;
	temp.x = x + obj.x;
	temp.y = y + obj.y;
	return temp;
}

Point Point::operator-(const Point& obj) {
	Point temp;
	temp.x = x - obj.x;
	temp.y = y - obj.y;
	return temp;
}

Point Point::operator*(const double n) {
	Point temp;
	temp.x = x * n;
	temp.y = y * n;
	return temp;
}

Point Point::operator/(const double n) {
	Point temp;
	temp.x = x / n;
	temp.y = y / n;
	return temp;
}

void Point::set(int x_in, int y_in) {
	x = x_in;
	y = y_in;
}

double abs(Point point) {
	return sqrt(point.x * point.x + point.y * point.y);
}

int N;
Point V[50];

std::string solve() {
	if (N % 2 != 0) return "NA";
	Point center = (V[0] + V[N / 2]) / 2;
	for (int i = 1; i < N / 2; i++) {
		Point median = (V[i] + V[i + N / 2]) / 2;
		Point dist = center - median;
		if (abs(dist) >= 0.001) {
			return "NA";
		}
	}
	std::ostringstream str;
	str << center.x << " " << center.y;
	return str.str();
}

int main() {
	//入力
	std::cin >> N;
	int x, y;
	for (int i = 0; i < N; i++) {
		std::cin >> x >> y;
		V[i].set(x, y);
	}
	//演算
	std::string answer = solve();
	//出力
	std::cout << answer << std::endl;
	return 0;
}