#include <bits/stdc++.h>
using namespace std;
long long n, x, y;
map<long long, long long> cntx, cnty;
vector<pair<long long, long long> > point;
set<long long> linex, liney;
int32_t main() {
  ios_base::sync_with_stdio(0), cin.tie(0), cout.tie(0);
  ;
  cin >> n;
  for (long long i = 0; i < 4 * n + 1; i++) {
    cin >> x >> y;
    point.push_back({x, y});
    cntx[x]++;
    cnty[y]++;
  }
  sort((point).begin(), (point).end());
  for (auto i : point) {
    x = i.first;
    y = i.second;
    long long t_x = cntx[x];
    long long t_y = cnty[y];
    if (t_x >= n) {
      liney.insert(x);
    }
    if (t_y >= n) {
      linex.insert(y);
    }
  }
  long long ly = *linex.begin();
  long long ry = *linex.rbegin();
  long long lx = *liney.begin();
  long long rx = *liney.rbegin();
  for (auto i : point) {
    x = i.first;
    y = i.second;
    if (x == lx || x == rx) {
      if (y >= ly && y <= ry)
        continue;
      else
        return cout << x << " " << y, 0;
    } else if (y == ly || y == ry) {
      if (x >= lx && x <= rx)
        continue;
      else
        return cout << x << " " << y, 0;
    } else
      return cout << x << " " << y, 0;
  }
}
