#include <bits/stdc++.h>
using namespace std;
const long long mod = 1000000007;
long long power(long long x, long long y) {
  long long res = 1;
  x = x % mod;
  while (y > 0) {
    if (y & 1) res = (res * x) % mod;
    y = y >> 1;
    x = (x * x) % mod;
  }
  return res;
}
long long ncr(long long n, long long r) {
  long long res = 1;
  if (r > n - r) r = n - r;
  for (long long i = 0; i < r; i++) {
    res *= (n - i);
    res /= (i + 1);
  }
  return res;
}
long long gcd(long long a, long long b) {
  if (a == 0) return b;
  return gcd(b % a, a);
}
long long lcm(long long a, long long b) { return (a / gcd(a, b) * b); }
long long max(long long a, long long b) {
  long long ans = a > b ? a : b;
  return ans;
}
long long min(long long a, long long b) {
  long long ans = a < b ? a : b;
  return ans;
}
clock_t time_p = clock();
void rtime() {
  time_p = clock() - time_p;
  cerr << "******************\nTime taken : "
       << (double)(time_p) / CLOCKS_PER_SEC << "\n";
}
signed main() {
  {
    long long n;
    cin >> n;
    n = 4 * n + 1;
    vector<pair<long long, long long>> v(n);
    for (long long i = 0; i < n; i++) cin >> v[i].first >> v[i].second;
    for (long long i = 0; i < n; i++) {
      vector<pair<long long, long long>> vc;
      for (long long j = 0; j < n; j++) {
        if (i != j) vc.push_back({v[j].first, v[j].second});
      }
      long long nc = vc.size(), x1 = 51, y1 = 51, x2 = -1, y2 = -1, c = 0;
      for (long long i = 0; i < nc; i++) {
        x1 = min(x1, vc[i].first);
        x2 = max(x2, vc[i].first);
        y1 = min(y1, vc[i].second);
        y2 = max(y2, vc[i].second);
      }
      if (x2 - x1 != y2 - y1) continue;
      for (long long j = 0; j < nc; j++) {
        if (vc[j].first == x1 && vc[j].second >= y1 && vc[j].second <= y2)
          c++;
        else if (vc[j].first == x2 && vc[j].second >= y1 && vc[j].second <= y2)
          c++;
        else if (vc[j].second == y1 && vc[j].first >= x1 && vc[j].first <= x2)
          c++;
        else if (vc[j].second == y2 && vc[j].first >= x1 && vc[j].first <= x2)
          c++;
      }
      if (c != nc - 1) return cout << v[i].first << " " << v[i].second, 0;
    }
  }
  rtime();
  return 0;
}
