#include "iostream"
#include "climits"
#include "list"
#include "queue"
#include "stack"
#include "set"
#include "functional"
#include "algorithm"
#include "string"
#include "map"
#include "unordered_map"
#include "unordered_set"
#include "iomanip"
#include "cmath"
#include "random"
#include "bitset"
#include "cstdio"
#include "numeric"
#include "cassert"

using namespace std;

//const long long int MOD = 1000000007;
const int MOD = 1000000007;
//const int MOD = 998244353;
//const long long int MOD = 998244353;

//long long int N, M, K, H, W, L, R;
int N, M, K, H, W, L, R;

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

	cin >> N;
	if (N & 1) {
		cout << "NA\n";
		return 0;
	}
		vector<pair<double, double>>v(N);
		for (auto &i : v)cin >> i.first >> i.second;
		for (int i = 0; i < N / 2; i++) {
			if (v[i].first + v[i + N / 2].first != v[0].first + v[N / 2].first|| v[i].second + v[i + N / 2].second != v[0].second + v[N / 2].second) {
				cout << "NA\n";
				return 0;
			}
		}
		cout <<setprecision(20)<< (v[0].first + v[N / 2].first) / 2 << " " << (v[0].second + v[N / 2].second) / 2 << endl;
}

