#include <bits/stdc++.h>
using namespace std;
int n, x[100], y[100];
bool others_on_square(int idx) {
  int mx = 100, my = 100, Mx = -1, My = -1;
  for (int i = 0; i < 4 * n + 1; i++) {
    if (i == idx) continue;
    mx = min(mx, x[i]);
    Mx = max(Mx, x[i]);
    my = min(my, y[i]);
    My = max(My, y[i]);
  }
  if (Mx - mx != My - my) return false;
  for (int i = 0; i < 4 * n + 1; i++) {
    if (i == idx) continue;
    if ((x[i] == mx || x[i] == Mx) && y[i] >= my && y[i] <= My)
      ;
    else if (x[i] >= mx && x[i] <= Mx && (y[i] == my || y[i] == My))
      ;
    else
      return false;
  }
  return true;
}
int main() {
  cin >> n;
  for (int i = 0; i < 4 * n + 1; i++) {
    cin >> x[i] >> y[i];
  }
  for (int i = 0; i < 4 * n + 1; i++) {
    if (others_on_square(i)) return cout << x[i] << " " << y[i] << "\n", 0;
  }
}
