#include <bits/stdc++.h>
using namespace std;
int main() {
  ios::sync_with_stdio(0);
  long long n;
  cin >> n;
  vector<pair<long long, long long>> a(4 * n + 1);
  for (long long(i) = (0); (i) < (long long)4 * n + 1; (i)++)
    cin >> a[i].first >> a[i].second;
  vector<long long> x(51), y(51);
  for (long long(i) = (0); (i) < (long long)4 * n + 1; (i)++) {
    x[a[i].first]++;
    y[a[i].second]++;
  }
  long long t, d, l, r;
  for (long long(i) = (0); (i) < (long long)51; (i)++)
    if (y[i] >= n) {
      t = i;
      break;
    }
  for (long long(i) = (0); (i) < (long long)51; (i)++)
    if (y[50 - i] >= n) {
      d = 50 - i;
      break;
    }
  for (long long(i) = (0); (i) < (long long)51; (i)++)
    if (x[i] >= n) {
      l = i;
      break;
    }
  for (long long(i) = (0); (i) < (long long)51; (i)++)
    if (x[50 - i] >= n) {
      r = 50 - i;
      break;
    }
  for (long long(i) = (0); (i) < (long long)4 * n + 1; (i)++) {
    long long ax = a[i].first, ay = a[i].second;
    if ((ay < t || ay > d || ax < l || ax > r) ||
        ay != t && ay != d && ax != l && ax != r) {
      cout << ax << ' ' << ay;
    }
  }
  return 0;
}
