#include <bits/stdc++.h>
using namespace std;
int main(void) {
  ios::sync_with_stdio(false);
  cin.tie(NULL);
  long long n;
  cin >> n;
  vector<pair<long long int, long long int> > pts;
  for (long long int i = 0; i < 4 * n + 1; i++) {
    long long a, b;
    cin >> a >> b;
    pts.push_back({a, b});
  }
  for (long long int ex = 0; ex < 4 * n + 1; ex++) {
    long long xmn = 1000000007, xmx = -1000000007, ymn = 1000000007,
              ymx = -1000000007;
    for (long long int i = 0; i < 4 * n + 1; i++) {
      if (i == ex) continue;
      xmn = min(xmn, pts[i].first);
      xmx = max(xmx, pts[i].first);
      ymn = min(ymn, pts[i].second);
      ymx = max(ymx, pts[i].second);
    }
    if (ymx - ymn != xmx - xmn) continue;
    long long cnt = 0;
    for (long long int i = 0; i < 4 * n + 1; i++) {
      if (i == ex) continue;
      if (pts[i].first == xmn || pts[i].first == xmx || pts[i].second == ymx ||
          pts[i].second == ymn)
        cnt++;
    }
    if (cnt == (4 * n)) {
      cout << pts[ex].first << ' ' << pts[ex].second << '\n';
      return 0;
    }
  }
  return 0;
}
