#include <bits/stdc++.h>
using namespace std;
map<long long, long long> mpx, mpy;
pair<long long, long long> a[55];
int main() {
  long long n, i, x1, x2, y1, y2, x, y;
  cin >> n;
  for (i = 1; i <= 4 * n + 1; i++) {
    cin >> a[i].first >> a[i].second;
    mpx[a[i].first]++;
    mpy[a[i].second]++;
  }
  x1 = x2 = y1 = y2 = -1;
  for (i = 0; i <= 50; i++) {
    if (mpx[i] >= n) {
      x2 = i;
      if (x1 == -1) x1 = i;
    }
    if (mpy[i] >= n) {
      y2 = i;
      if (y1 == -1) y1 = i;
    }
  }
  for (i = 1; i <= 4 * n + 1; i++) {
    x = a[i].first;
    y = a[i].second;
    if (x == x1 || x == x2)
      if (y1 <= y && y <= y2) continue;
    if (y == y1 || y == y2)
      if (x1 <= x && x <= x2) continue;
    cout << x << ' ' << y << '\n';
    return 0;
  }
  return 0;
}
