#include <bits/stdc++.h>
using namespace std;
int main() {
  int x1 = INT_MAX, x2 = INT_MIN, Y1 = INT_MAX, y2 = INT_MIN;
  int n, i;
  cin >> n;
  pair<int, int> a[4 * n + 1];
  for (i = 0; i < (4 * n + 1); ++i) cin >> a[i].first >> a[i].second;
  int mx[52] = {0}, my[52] = {0};
  for (i = 0; i < (4 * n + 1); ++i) {
    ++mx[a[i].first];
    ++my[a[i].second];
    if (mx[a[i].first] == 2) {
      if (a[i].first < x1) x1 = a[i].first;
      if (a[i].first > x2) x2 = a[i].first;
    }
    if (my[a[i].second] == 2) {
      if (a[i].second < Y1) Y1 = a[i].second;
      if (a[i].second > y2) y2 = a[i].second;
    }
  }
  int f, u, v;
  for (i = 0; i < (4 * n + 1); ++i) {
    f = 0;
    u = a[i].first, v = a[i].second;
    if (v == Y1 || v == y2) {
      if (u < x1 || u > x2) break;
    } else if (u == x1 || u == x2) {
      if (v < Y1 || v > y2) break;
    } else {
      break;
    }
  }
  cout << a[i].first << " " << a[i].second << "\n";
  return 0;
}
