#include <bits/stdc++.h>
using namespace std;
void fio() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  cout.tie(NULL);
}
int main() {
  fio();
  int n;
  cin >> n;
  vector<pair<int, int> > vec(4 * n + 1);
  map<int, int> mx, my;
  for (int i = 0; i < 4 * n + 1; i++) {
    int x, y;
    cin >> x >> y;
    vec[i].first = x, vec[i].second = y;
    mx[x]++, my[y]++;
  }
  pair<int, int> ans;
  int min_x = 1e9, min_y = 1e9, max_x = -1e9, max_y = -1e9;
  for (auto it = mx.begin(); it != mx.end(); it++) {
    if (it->second >= n) {
      min_x = min(it->first, min_x);
      max_x = max(max_x, it->first);
    }
  }
  for (auto it = my.begin(); it != my.end(); it++) {
    if (it->second >= n) {
      min_y = min(it->first, min_y);
      max_y = max(it->first, max_y);
    }
  }
  for (int i = 0; i < 4 * n + 1; i++) {
    if (vec[i].first > min_x && vec[i].first < max_x && vec[i].second > min_y &&
        vec[i].second < max_y) {
      ans.first = vec[i].first, ans.second = vec[i].second;
      break;
    }
    if (vec[i].first < min_x || vec[i].first > max_x || vec[i].second < min_y ||
        vec[i].second > max_y) {
      ans.first = vec[i].first, ans.second = vec[i].second;
      break;
    }
  }
  cout << ans.first << " " << ans.second << endl;
  return 0;
}
