#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  int p = 4 * n + 1;
  int a[p], b[p];
  for (int i = 0; i < p; i++) {
    cin >> a[i] >> b[i];
  }
  int ma_x = -1, ma_y = -1, min_x = 51, min_y = 51;
  for (int i = 0; i < p; i++) {
    for (int g = 0; g < p; g++) {
      if (a[i] == a[g] && i != g) {
        if (ma_x < a[i]) ma_x = a[i];
        if (min_x > a[i]) min_x = a[i];
      }
      if (b[i] == b[g] && i != g) {
        if (ma_y < b[i]) ma_y = b[i];
        if (min_y > b[i]) min_y = b[i];
      }
    }
  }
  for (int i = 0; i < p; i++) {
    if (a[i] != ma_x && a[i] != min_x && b[i] != ma_y && b[i] != min_y &&
            b[i] != min_y ||
        min_x > a[i] || ma_x < a[i] || ma_y < b[i] || min_y > b[i]) {
      cout << a[i] << " " << b[i];
      return 0;
    }
  }
}
