#include <bits/stdc++.h>
using namespace std;
void goforit() {
  int n;
  cin >> n;
  map<int, int> dpx, dpy;
  int x[4 * n + 1], y[4 * n + 1];
  for (int i = 0; i <= 4 * n; i++) {
    cin >> x[i] >> y[i];
    dpx[x[i]]++;
    dpy[y[i]]++;
  }
  int x1 = -1, x2 = -1, y1 = -1, y2 = -1;
  for (auto i : dpx) {
    if (i.second >= n) {
      if (x1 == -1) {
        x1 = i.first;
      } else {
        x2 = i.first;
      }
    }
  }
  for (auto i : dpy) {
    if (i.second >= n) {
      if (y1 == -1) {
        y1 = i.first;
      } else {
        y2 = i.first;
      }
    }
  }
  if (x1 > x2) swap(x1, x2);
  if (y1 > y2) swap(y1, y2);
  for (int i = 0; i <= 4 * n; i++) {
    if (x[i] == x1 || x[i] == x2) {
      if (y[i] > y2 || y[i] < y1) {
        cout << x[i] << " " << y[i] << endl;
        return;
      }
    } else if (y[i] == y1 || y[i] == y2) {
      if (x[i] > x2 || x[i] < x1) {
        cout << x[i] << " " << y[i] << endl;
        return;
      }
    } else {
      cout << x[i] << " " << y[i] << endl;
      return;
    }
  }
}
int main() {
  ios::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  ;
  int TEST = 1;
  while (TEST--) {
    goforit();
  }
}
