#include <bits/stdc++.h>
using namespace std;
int n;
int x[45], y[45];
bool eligible(int posx, int posy, int xle, int yle, int xre, int yre) {
  if (posx < xle || posx > xre) return false;
  if (posy < yle || posy > yre) return false;
  return posx == xle || posx == xre || posy == yle || posy == yre;
}
int main() {
  int i, j, k, l;
  cin >> n;
  for (i = 0; i < 4 * n + 1; i++) cin >> x[i] >> y[i];
  for (i = 0; i <= 50; i++) {
    for (j = 0; j <= 50; j++) {
      for (k = 0; k + i <= 50 && k + j <= 50; k++) {
        int tot = 0, ans;
        for (l = 0; l < 4 * n + 1; l++)
          if (!eligible(x[l], y[l], i, j, k + i, k + j)) {
            tot++;
            ans = l;
          }
        if (tot == 1) {
          cout << x[ans] << ' ' << y[ans] << endl;
          return 0;
        }
      }
    }
  }
}
