#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  long long n, a[209] = {0}, b[209] = {0}, m, k;
  vector<pair<long long, long long> > v;
  string s;
  cin >> n;
  for (int i = 0; i <= 4 * n; i++) {
    long long x, y;
    cin >> x >> y;
    v.push_back(make_pair(x, y));
    a[x]++;
    b[y]++;
  }
  long long st1 = -1, st2 = -1, e1, e2, ax = 0, ay = 0;
  for (int i = 0; i <= 50; i++) {
    if (st1 == -1 && a[i] == n)
      st1 = i;
    else if (st1 == -1 && a[i] > n) {
      st1 = i;
      ax = i;
    } else if (st1 != -1 && a[i] == n)
      e1 = i;
    else if (st1 != -1 && a[i] > n) {
      e1 = i;
      ax = i;
    }
  }
  for (int i = 0; i <= 50; i++) {
    if (st2 == -1 && b[i] == n)
      st2 = i;
    else if (st2 == -1 && b[i] > n) {
      st2 = i;
      ay = i;
    } else if (st2 != -1 && b[i] == n)
      e2 = i;
    else if (st2 != -1 && b[i] > n) {
      e2 = i;
      ay = i;
    }
  }
  for (int i = 0; i <= 4 * n; i++) {
    long long x = v[i].first, y = v[i].second;
    if (x > e1 || x < st1) {
      ax = x;
      ay = y;
    }
    if (y > e2 || y < st2) {
      ax = x;
      ay = y;
    } else if (x > st1 && x < e1 && y != st2 && y != e2) {
      ax = x;
      ay = y;
    }
  }
  cout << ax << " " << ay << endl;
  return 0;
}
