#include <bits/stdc++.h>
using namespace std;
int n, x[50], y[50], up, down, l, r;
bool check(int p) {
  up = -101;
  down = 101;
  l = 101;
  r = -101;
  for (int i = 1; i <= 4 * n + 1; i++)
    if (i != p) {
      up = max(up, y[i]);
      down = min(down, y[i]);
      l = min(l, x[i]);
      r = max(r, x[i]);
    };
  if (r - l != up - down) return 0;
  for (int i = 1; i <= 4 * n + 1; i++)
    if (i != p)
      if (x[i] != l && x[i] != r && y[i] != up && y[i] != down) return 0;
  return 1;
}
int main() {
  cin >> n;
  for (int i = 1; i <= 4 * n + 1; i++) cin >> x[i] >> y[i];
  for (int i = 1; i <= 4 * n + 1; i++)
    if (check(i)) {
      cout << x[i] << ' ' << y[i];
      return 0;
    }
  return 0;
}
