#include <bits/stdc++.h>
using namespace std;
const int maxn = 1000;
int n, x[maxn + 9], y[maxn + 9], a[maxn + 9], b[maxn + 9],
    d[maxn + 9][maxn + 9], xmin, ymin, xmax, ymax;
int main() {
  cin >> n;
  for (int i = 1; i <= n * 4 + 1; i++) {
    cin >> a[i] >> b[i];
    x[a[i]]++, y[b[i]]++;
  }
  xmin = maxn, xmax = -maxn;
  for (int i = 0; i <= maxn; i++)
    if (x[i] >= 2) {
      xmin = min(xmin, i);
      xmax = max(xmax, i);
    }
  ymin = maxn, ymax = -maxn;
  for (int i = 0; i <= maxn; i++)
    if (y[i] >= 2) {
      ymin = min(ymin, i);
      ymax = max(ymax, i);
    }
  for (int i = xmin; i <= xmax; i++) d[i][ymin] = d[i][ymax] = 1;
  for (int i = ymin; i <= ymax; i++) d[xmin][i] = d[xmax][i] = 1;
  for (int i = 1; i <= n * 4 + 1; i++)
    if (d[a[i]][b[i]] != 1) {
      cout << a[i] << " " << b[i];
      return 0;
    }
  return 0;
}
