#include <bits/stdc++.h>
using namespace std;
int main() {
  ios::sync_with_stdio(false);
  int n;
  cin >> n;
  vector<int> px, py;
  vector<pair<long long, long long> > pts;
  for (int i = 0; i < 4 * n + 1; i++) {
    int a, b;
    cin >> a >> b;
    px.push_back(a);
    py.push_back(b);
    pts.push_back({a, b});
  }
  sort(px.begin(), px.end());
  sort(py.begin(), py.end());
  int largma = min(px[px.size() - 1], px[px.size() - 2]);
  int largmi = max(px[0], px[1]);
  int altma = min(py[py.size() - 1], py[py.size() - 2]);
  int altmi = max(py[0], py[1]);
  for (int i = 0; i < pts.size(); i++) {
    bool cond = false;
    if (pts[i].first == largma || pts[i].first == largmi) {
      if (pts[i].second >= altmi && pts[i].second <= altma) cond = true;
    }
    if (pts[i].second == altma || pts[i].second == altmi) {
      if (pts[i].first >= largmi && pts[i].first <= largma) cond = true;
    }
    if (!cond) {
      cout << pts[i].first << " " << pts[i].second << endl;
      return 0;
    }
  }
  return 0;
}
