#include <bits/stdc++.h>
using namespace std;
long long gcd(long long a, long long b) {
  if (!b) return a;
  return gcd(b, a % b);
}
long long power(long long x, long long y, long long p = 1e18) {
  long long res = 1;
  x %= p;
  while (y > 0) {
    if (y & 1) res = (res * x) % p;
    y = y >> 1;
    x = (x * x) % p;
  }
  return res;
}
void solve() {
  long long n;
  cin >> n;
  n = 4 * n + 1;
  long long minX = 51, maxX = 0, minY = 51, maxY = 0;
  vector<long long> dx(51, 0), dy(51, 0);
  pair<long long, long long> p[n];
  for (long long i = 0; i < n; i++) {
    cin >> p[i].first >> p[i].second;
    dx[p[i].first]++;
    dy[p[i].second]++;
  }
  for (long long i = 0; i < 51; i++) {
    if (dx[i] > 1) {
      minX = min(minX, i);
      maxX = max(maxX, i);
    }
    if (dy[i] > 1) {
      minY = min(minY, i);
      maxY = max(maxY, i);
    }
  }
  for (long long i = 0; i < n; i++) {
    if ((p[i].first > maxX || p[i].first < minX || p[i].second > maxY ||
         p[i].second < minY) ||
        (p[i].first != minX && p[i].second != minY && p[i].first != maxX &&
         p[i].second != maxY)) {
      cout << p[i].first << " " << p[i].second;
      return;
    }
  }
}
int32_t main() {
  ios::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  long long t = 1;
  cout << fixed << setprecision(12);
  while (t--) {
    solve();
  }
  cerr << "Time Taken : " << (float)clock() / CLOCKS_PER_SEC << " secs"
       << "\n";
}
