#include <bits/stdc++.h>
using namespace std;
struct point {
  int x, y;
};
int x1, x2, ys, y2;
bool check(int x, int y) {
  if (x == x1 or x == x2 or y == ys or y == y2) {
    if (x <= x2 and x >= x1 and y <= y2 and y >= ys) return true;
    return false;
  } else
    return false;
}
int main() {
  int n;
  cin >> n;
  point A[100];
  for (int i = 0; i < 4 * n + 1; i++) {
    cin >> A[i].x >> A[i].y;
  }
  int mp[110];
  memset(mp, 0, sizeof(mp));
  for (int i = 0; i < 4 * n + 1; i++) mp[A[i].x]++;
  for (int i = 0; i < 100; i++) {
    if (mp[i] >= n) {
      x1 = i;
      break;
    }
  }
  for (int i = 100; i >= 0; i--) {
    if (mp[i] >= n) {
      x2 = i;
      break;
    }
  }
  memset(mp, 0, sizeof(mp));
  for (int i = 0; i < 4 * n + 1; i++) mp[A[i].y]++;
  for (int i = 0; i < 100; i++) {
    if (mp[i] >= n) {
      ys = i;
      break;
    }
  }
  for (int i = 100; i >= 0; i--) {
    if (mp[i] >= n) {
      y2 = i;
      break;
    }
  }
  for (int i = 0; i < 4 * n + 1; i++) {
    if (!check(A[i].x, A[i].y)) {
      cout << A[i].x << " " << A[i].y;
      return 0;
    }
  }
}
