#include <bits/stdc++.h>
std::mt19937 rnd(
    std::chrono::high_resolution_clock::now().time_since_epoch().count());
const double PI = atan2(0., -1.);
const int INF = 0x3f3f3f3f;
const int N = 20;
std::pair<int, int> a[N];
int main(void) {
  int n;
  scanf("%d", &n);
  n = 4 * n + 1;
  for (int i = 0; i < n; ++i) {
    scanf("%d%d", &a[i].first, &a[i].second);
  }
  for (int il = 0; il < n; ++il) {
    for (int ir = 0; ir < n; ++ir) {
      for (int iu = 0; iu < n; ++iu) {
        for (int id = 0; id < n; ++id) {
          int xl = a[il].first;
          int xr = a[ir].first;
          int yu = a[iu].second;
          int yd = a[id].second;
          if (xl >= xr) {
            continue;
          }
          if (yd >= yu) {
            continue;
          }
          std::vector<int> shit;
          for (int i = 0; i < n; ++i) {
            if (a[i].first == xl && (a[i].second >= yd && a[i].second <= yu)) {
              continue;
            }
            if (a[i].first == xr && (a[i].second >= yd && a[i].second <= yu)) {
              continue;
            }
            if (a[i].second == yd && (a[i].first >= xl && a[i].first <= xr)) {
              continue;
            }
            if (a[i].second == yu && (a[i].first >= xl && a[i].first <= xr)) {
              continue;
            }
            shit.push_back(i);
          }
          if (shit.size() == 1) {
            printf("%d %d\n", a[shit[0]].first, a[shit[0]].second);
            return 0;
          }
        }
      }
    }
  }
  return 0;
}
