#include <bits/stdc++.h>
using namespace std;
ifstream in;
ofstream out;
const long long kk = 1000;
const long long ml = kk * kk;
const long long mod = ml * kk + 7;
const long long inf = ml * ml * ml + 7;
long long n, i, j;
long long kx0, kx1, ky0, ky1;
vector<pair<long long, long long> > m;
bool viv = false;
int main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  cin >> n;
  long long x0 = inf, x1 = -inf, y0 = inf, y1 = -inf;
  for (i = 0; i < 4 * n + 1; i++) {
    long long a, b;
    cin >> a >> b;
    x0 = min(x0, a);
    x1 = max(x1, a);
    y0 = min(y0, b);
    y1 = max(y1, b);
    m.push_back({a, b});
  }
  for (auto p : m) {
    if (p.first == x0) kx0++;
    if (p.first == x1) kx1++;
    if (p.second == y0) ky0++;
    if (p.second == y1) ky1++;
  }
  if (kx0 == 1)
    for (auto p : m)
      if (p.first == x0) {
        cout << p.first << ' ' << p.second;
        exit(0);
      }
  if (kx1 == 1)
    for (auto p : m)
      if (p.first == x1) {
        cout << p.first << ' ' << p.second;
        exit(0);
      }
  if (ky0 == 1)
    for (auto p : m)
      if (p.second == y0) {
        cout << p.first << ' ' << p.second;
        exit(0);
      }
  if (ky1 == 1)
    for (auto p : m)
      if (p.second == y1) {
        cout << p.first << ' ' << p.second;
        exit(0);
      }
  for (auto p : m)
    if (p.first != x0 && p.first != x1 && p.second != y0 && p.second != y1)
      cout << p.first << ' ' << p.second << endl;
  return 0;
}
