#include <bits/stdc++.h>
using namespace std;
int x[50], y[50], xc[50], yc[50];
int main() {
  int n;
  scanf("%d", &n);
  for (int i = 0; i < n * 4 + 1; i++) {
    scanf("%d%d", &x[i], &y[i]);
  }
  for (int j = 0; j < n * 4 + 1; j++) {
    int f = 1, xmin = 1000, xmax = -1, ymin = 1000, ymax = -1;
    for (int i = 0; i < n * 4 + 1; i++) {
      if (i == j) continue;
      xmax = max(xmax, x[i]);
      xmin = min(xmin, x[i]);
      ymax = max(ymax, y[i]);
      ymin = min(ymin, y[i]);
    }
    int uc = 0, dc = 0, lc = 0, rc = 0;
    for (int i = 0; i < n * 4 + 1; i++) {
      if (i == j) continue;
      if (xmin < x[i] && x[i] < xmax && ymin < y[i] && y[i] < ymax) {
        f = 0;
      } else if (xmin <= x[i] && x[i] <= xmax && ymin <= y[i] && y[i] <= ymax) {
      } else {
        f = 0;
      }
      if (x[i] == xmin) lc++;
      if (y[i] == ymin) dc++;
      if (y[i] == ymax) uc++;
      if (x[i] == xmax) rc++;
    }
    if (f && lc >= n && rc >= n && uc >= n && dc >= n) {
      printf("%d %d\n", x[j], y[j]);
      break;
    }
  }
  return 0;
}
