#include <bits/stdc++.h>
using namespace std;
long long powr(long long a, long long b) {
  long long res = 1;
  while (b) {
    if (b & 1) res = (res * a) % 1000000007;
    a = (a * a) % 1000000007;
    b >>= 1;
  }
  return res;
}
long long n, x, y, lx, ly, fl, a;
vector<pair<long long, long long>> pnt;
vector<long long> vx, vy;
map<long long, long long> mx, my;
void bta(long long x1, long long x2, long long y1, long long y2) {
  long long cn = 0, ax, ay, i, j;
  for (i = 0; i < a; i++) {
    if (pnt[i].first == x1 || pnt[i].first == x2) {
      if (pnt[i].second < y1 || pnt[i].second > y2) {
        cn++;
        ax = pnt[i].first;
        ay = pnt[i].second;
      }
    }
    if (pnt[i].second == y1 || pnt[i].second == y2) {
      if (pnt[i].first < x1 || pnt[i].first > x2) {
        cn++;
        ax = pnt[i].first;
        ay = pnt[i].second;
      }
    }
    if (pnt[i].first != x1 && pnt[i].second != y1 && pnt[i].first != x2 &&
        pnt[i].second != y2) {
      cn++;
      ax = pnt[i].first;
      ay = pnt[i].second;
    }
  }
  if (cn == 1) {
    fl = 1;
    cout << ax << " " << ay;
  }
}
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  cout.tie(NULL);
  long long i, j, k, l;
  cin >> n;
  a = 4 * n + 1;
  for (i = 0; i < a; i++) {
    cin >> x >> y;
    mx[x]++;
    my[y]++;
    pnt.push_back({x, y});
  }
  lx = mx.size();
  ly = my.size();
  auto it = mx.begin();
  while (it != mx.end()) {
    vx.push_back(it->first);
    it++;
  }
  auto itr = my.begin();
  while (itr != my.end()) {
    vy.push_back(itr->first);
    itr++;
  }
  long long a1 = vx.size(), a2 = vy.size();
  long long mc = 0;
  for (i = 0; i < lx; i++) {
    for (j = i + 1; j < lx; j++) {
      for (k = 0; k < ly; k++) {
        for (l = k + 1; l < ly; l++) {
          if (vx[j] - vx[i] == vy[l] - vy[k]) {
            bta(vx[i], vx[j], vy[k], vy[l]);
            mc++;
            if (fl) break;
          }
        }
        if (fl) break;
      }
      if (fl) break;
    }
    if (fl) break;
  }
  return 0;
}
