#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(0);
  cout.tie(0);
  int n;
  cin >> n;
  int len = 4 * n + 1;
  pair<int, int> ar[len + 2];
  for (int i = 0; i < len; i++) {
    cin >> ar[i].first >> ar[i].second;
  }
  sort(ar, ar + len);
  for (int hilang = 0; hilang < len; hilang++) {
    vector<pair<int, int> > v;
    int cnt = 0, xmin = 1000000007, xmax = -1000000007, ymin = 1000000007,
        ymax = -1000000007;
    for (int i = 0; i < len; i++) {
      if (i == hilang) continue;
      v.push_back(ar[i]);
      xmin = min(xmin, ar[i].first);
      xmax = max(xmax, ar[i].first);
      ymin = min(ymin, ar[i].second);
      ymax = max(ymax, ar[i].second);
    }
    int cx1 = 0, cx2 = 0, cy1 = 0, cy2 = 0;
    for (auto coor : v) {
      if (coor.first == xmin || coor.first == xmax) {
        if (coor.second >= ymin && coor.second <= ymax) {
          if (coor.first == xmin) cx1++;
          if (coor.first == xmax) cx2++;
          if (coor.second == ymin) cy1++;
          if (coor.second == ymax) cy2++;
          continue;
        }
      }
      if (coor.second == ymin || coor.second == ymax) {
        if (coor.first >= xmin && coor.first <= xmax) {
          if (coor.first == xmin) cx1++;
          if (coor.first == xmax) cx2++;
          if (coor.second == ymin) cy1++;
          if (coor.second == ymax) cy2++;
          continue;
        }
      }
      cnt++;
    }
    if (ar[hilang].first == xmin || ar[hilang].first == xmax) {
      if (ar[hilang].second >= ymin && ar[hilang].second <= ymax) continue;
    }
    if (ar[hilang].second == ymin || ar[hilang].second == ymax) {
      if (ar[hilang].first >= xmin && ar[hilang].first <= xmax) continue;
    }
    if (cnt == 0 && (cx1 >= n && cx2 >= n && cy1 >= n && cy2 >= n)) {
      cout << ar[hilang].first << " " << ar[hilang].second << '\n';
      return 0;
    }
  }
  return 0;
}
