#include <bits/stdc++.h>
using namespace std;
int main() {
  int nn, i, j, n;
  cin >> n;
  nn = 4 * n + 1;
  int x[nn], y[nn];
  for (i = 0; i < nn; i++) {
    cin >> x[i] >> y[i];
  }
  for (i = 0; i < nn; i++) {
    int mxx = 0, mix = 55, mxy = 0, miy = 55;
    for (j = 0; j < nn; j++) {
      if (i != j) {
        mxx = max(mxx, x[j]);
        mix = min(mix, x[j]);
        mxy = max(mxy, y[j]);
        miy = min(miy, y[j]);
      }
    }
    bool flag = 1;
    for (j = 0; j < nn; j++) {
      if (i != j) {
        if (x[j] != mxx && x[j] != mix && y[j] != mxy && y[j] != miy) {
          flag = 0;
        }
      }
    }
    if (mxx - mix == mxy - miy) {
      if (flag == 1) {
        cout << x[i] << " " << y[i] << endl;
        return 0;
      }
    }
  }
  return 0;
  return 0;
}
