#include <stdio.h>
int N, X[50], Y[50], sx, sy;
int main() {
	scanf("%d", &N);
	for(int i = 0; i < N; i++) {
		scanf("%d%d", &X[i], &Y[i]);
		sx += X[i];
		sy += Y[i];
	}
	if(N % 2 == 1) {
		printf("NA\n");
	}
	else {
		bool flag = true;
		for(int i = 0; i < N / 2; i++) {
			flag = flag && ((1.0 * sx / N - X[i]) * 2 == (X[N / 2 + i] - X[i]) && (1.0 * sy / N - Y[i]) * 2 == (Y[N / 2 + i] - Y[i]));
		}
		if(flag) {
			printf("%.9f %.9f\n", 1.0 * sx / N, 1.0 * sy / N);
		}
		else {
			printf("NA\n");
		}
	}
	return 0;
}