#include <bits/stdc++.h>
using namespace std;
bool isAllOK(int a, int ar[50][2], int z) {
  int mnx = 99999999, mxx = -1, mny = 99999999, mxy = -1;
  for (int i = 0; i < z; i++) {
    if (a == i) {
      continue;
    }
    mnx = min(mnx, ar[i][0]);
    mny = min(mny, ar[i][1]);
    mxx = max(mxx, ar[i][0]);
    mxy = max(mxy, ar[i][1]);
  }
  if (mxx - mnx != mxy - mny) {
    return false;
  }
  for (int i = 0; i < z; i++) {
    if (a == i) {
      continue;
    }
    if (!((ar[i][0] == mnx && ar[i][1] <= mxy && ar[i][1] >= mny) ||
          (ar[i][0] == mxx && ar[i][1] <= mxy && ar[i][1] >= mny) ||
          (ar[i][1] == mny && ar[i][0] <= mxx && ar[i][0] >= mnx) ||
          (ar[i][1] == mxy && ar[i][0] <= mxx && ar[i][0] >= mnx))) {
      return false;
    }
  }
  return true;
}
int main() {
  int n, m, l1, l2, ar[50][2], z;
  cin >> n;
  z = 4 * n + 1;
  for (int i = 0; i < z; i++) {
    cin >> ar[i][0] >> ar[i][1];
  }
  for (int i = 0; i < z; i++) {
    if (isAllOK(i, ar, z)) {
      cout << ar[i][0] << " " << ar[i][1] << "\n";
      return 0;
    }
  }
  return 0;
}
