#include <bits/stdc++.h>
using namespace std;
int n;
pair<int, int> c[50];
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  cin >> n;
  n = n * 4 + 1;
  int mix = 999, miy = 999;
  for (int i = 0; i < n; i++) {
    cin >> c[i].first >> c[i].second;
    mix = min(mix, c[i].first);
    miy = min(miy, c[i].second);
  }
  int zx = 0;
  int zy = 0;
  int dx, dy;
  for (int i = 0; i < n; i++) {
    c[i].first -= mix;
    c[i].second -= miy;
    if (c[i].first == 0) {
      zx++;
      dx = i;
    }
    if (c[i].second == 0) {
      zy++;
      dy = i;
    }
  }
  if (zx == 1) {
    cout << c[dx].first + mix << " " << c[dx].second + miy << endl;
    return 0;
  }
  if (zy == 1) {
    cout << c[dy].first + mix << " " << c[dy].second + miy << endl;
    return 0;
  }
  for (int i = 0; i < 51; i++) {
    for (int j = 0; j < 51; j++) {
      int e = -1;
      bool b = false;
      int s[4] = {0};
      for (int k = 0; k < n; k++) {
        if (!((c[k].first == 0 || c[k].first == i) && c[k].second >= 0 &&
                  c[k].second <= j ||
              (c[k].second == 0 || c[k].second == j) && c[k].first >= 0 &&
                  c[k].first <= i)) {
          if (e != -1) {
            b = true;
            break;
          } else {
            e = k;
          }
        } else {
          if (c[k].first == 0 && c[k].second >= 0 && c[k].second <= j) s[0]++;
          if (c[k].first == i && c[k].second >= 0 && c[k].second <= j) s[1]++;
          if (c[k].second == 0 && c[k].first >= 0 && c[k].first <= i) s[2]++;
          if (c[k].second == j && c[k].first >= 0 && c[k].first <= i) s[3]++;
        }
      }
      if (!b && s[0] >= n / 4 && s[1] >= n / 4 && s[2] >= n / 4 &&
          s[3] >= n / 4) {
        cout << c[e].first + mix << " " << c[e].second + miy << endl;
      }
    }
  }
  return 0;
}
