#include <bits/stdc++.h>
using namespace std;
int x[50], y[50];
int maxx, maxy, minx, miny;
int main() {
  int n;
  cin >> n;
  for (int i = 1; i <= 4 * n + 1; i++) cin >> x[i] >> y[i];
  for (int i = 1; i <= 4 * n + 1; i++) {
    maxx = -1;
    maxy = -1;
    minx = 51;
    miny = 51;
    for (int j = 1; j <= 4 * n + 1; j++)
      if (j != i) {
        maxx = max(maxx, x[j]);
        minx = min(minx, x[j]);
        maxy = max(maxy, y[j]);
        miny = min(miny, y[j]);
      }
    bool flag = true;
    for (int j = 1; j <= 4 * n + 1; j++)
      if (j != i)
        if ((x[j] != minx && x[j] != maxx) && (y[j] != miny && y[j] != maxy))
          flag = false;
    if (maxx - minx != maxy - miny) flag = false;
    if (flag) {
      cout << x[i] << " " << y[i];
      break;
    }
  }
}
