#include <bits/stdc++.h>
using namespace std;
long long mexp(long long a, long long b) {
  long long ans = 1;
  a %= 1000000007;
  while (b) {
    if (b & 1) ans = ans * a % 1000000007;
    b >>= 1;
    a = a * a % 1000000007;
  }
  return ans;
}
int n, m;
int lx, ly;
bool ck;
vector<pair<int, int>> inp;
vector<int> vx, vy;
map<int, int> cntx, cnty;
void get(long long xa, long long xb, long long ya, long long yb) {
  int c = 0;
  int ansx, ansy;
  for (long long i = 0; i < m; ++i) {
    if (inp[i].first == xa || inp[i].first == xb) {
      if (inp[i].second < ya || inp[i].second > yb) {
        c++;
        ansx = inp[i].first;
        ansy = inp[i].second;
      }
    }
    if (inp[i].second == ya || inp[i].second == yb) {
      if (inp[i].first < xa || inp[i].first > xb) {
        c++;
        ansx = inp[i].first;
        ansy = inp[i].second;
      }
    }
    if (inp[i].first != xa && inp[i].second != ya && inp[i].first != xb &&
        inp[i].second != yb) {
      c++;
      ansx = inp[i].first;
      ansy = inp[i].second;
    }
  }
  if (c == 1) {
    ck = 1;
    cout << ansx << " " << ansy;
  }
}
int main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  int n;
  cin >> n;
  m = 4 * n + 1;
  for (long long i = 0; i < m; ++i) {
    int x, y;
    cin >> x >> y;
    cntx[x]++;
    cnty[y]++;
    inp.push_back({x, y});
  }
  lx = (long long)cntx.size();
  ly = (long long)cnty.size();
  for (auto i : cntx) {
    vx.push_back(i.first);
  }
  for (auto i : cnty) {
    vy.push_back(i.first);
  }
  long long cnt = 0;
  for (long long i = 0; i < lx; ++i) {
    for (long long j = i + 1; j < lx; ++j) {
      for (long long k = 0; k < ly; ++k) {
        for (long long l = k + 1; l < ly; ++l) {
          if (vx[j] - vx[i] == vy[l] - vy[k]) {
            get(vx[i], vx[j], vy[k], vy[l]);
            cnt++;
            if (ck) {
              break;
            }
          }
        }
        if (ck) {
          break;
        }
      }
      if (ck) {
        break;
      }
    }
    if (ck) {
      break;
    }
  }
  cerr << "Time: " << 1.0 / CLOCKS_PER_SEC << " ms" << endl;
  return 0;
}
