#include <bits/stdc++.h>
using namespace std;
const int N = 50;
int x[N], y[N];
int main() {
  int n;
  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++) {
    int minim_x = 100, maxim_x = 0, minim_y = 100, maxim_y = 0;
    for (int j = 1; j <= 4 * n + 1; j++) {
      if (i != j) {
        minim_x = min(minim_x, x[j]);
        maxim_x = max(maxim_x, x[j]);
        minim_y = min(minim_y, y[j]);
        maxim_y = max(maxim_y, y[j]);
      }
    }
    bool ans = true;
    int n1 = 0, n2 = 0, n3 = 0, n4 = 0;
    for (int j = 1; j <= 4 * n + 1; j++) {
      if (i != j) {
        if (x[j] == minim_x || x[j] == maxim_x || y[j] == minim_y ||
            y[j] == maxim_y) {
          if (x[j] == minim_x) n1++;
          if (x[j] == maxim_x) n2++;
          if (y[j] == minim_y) n3++;
          if (y[j] == maxim_y) n4++;
        } else
          ans = false;
      }
    }
    if (ans && n1 >= n && n2 >= n && n3 >= n && n4 >= n &&
        maxim_y - minim_y == maxim_x - minim_x) {
      cout << x[i] << " " << y[i] << endl;
      return 0;
    }
  }
  return 0;
}
