#include <bits/stdc++.h>
using namespace std;
bool rev(long long x, long long y) { return x > y; }
void input_arr(long long a[], long long n) {
  for (long long i = 0; i < n; i += 1) cin >> a[i];
}
void print_vec(vector<long long> &v) {
  for (auto i : v) cout << i << " ";
  cout << '\n';
}
void print_arr(long long a[], long long n) {
  for (long long i = 0; i < n; i += 1) cout << a[i] << " ";
  cout << '\n';
}
bool sortbysec(const pair<long long, long long> &a,
               const pair<long long, long long> &b) {
  return (a.second < b.second);
}
void __print(long long x) { cerr << x; }
void __print(long double x) { cerr << x; }
void __print(char x) { cerr << '\'' << x << '\''; }
void __print(const char *x) { cerr << '\"' << x << '\"'; }
void __print(const string &x) { cerr << '\"' << x << '\"'; }
void __print(bool x) { cerr << (x ? "true" : "false"); }
template <typename T, typename V>
void __print(const pair<T, V> &x) {
  cerr << '{';
  __print(x.first);
  cerr << ',';
  __print(x.second);
  cerr << '}';
}
template <typename T>
void __print(const T &x) {
  long long f = 0;
  cerr << '{';
  for (auto &i : x) cerr << (f++ ? "," : ""), __print(i);
  cerr << "}";
}
void _print() { cerr << "\n"; }
template <typename T, typename... V>
void _print(T t, V... v) {
  __print(t);
  if (sizeof...(v)) cerr << ",";
  _print(v...);
}
template <typename... T>
void input(T &...args) {
  ((cin >> args), ...);
}
template <typename... T>
void print(T &&...args) {
  ((cout << args << " "), ...);
}
long long primes[168] = {
    2,   3,   5,   7,   11,  13,  17,  19,  23,  29,  31,  37,  41,  43,
    47,  53,  59,  61,  67,  71,  73,  79,  83,  89,  97,  101, 103, 107,
    109, 113, 127, 131, 137, 139, 149, 151, 157, 163, 167, 173, 179, 181,
    191, 193, 197, 199, 211, 223, 227, 229, 233, 239, 241, 251, 257, 263,
    269, 271, 277, 281, 283, 293, 307, 311, 313, 317, 331, 337, 347, 349,
    353, 359, 367, 373, 379, 383, 389, 397, 401, 409, 419, 421, 431, 433,
    439, 443, 449, 457, 461, 463, 467, 479, 487, 491, 499, 503, 509, 521,
    523, 541, 547, 557, 563, 569, 571, 577, 587, 593, 599, 601, 607, 613,
    617, 619, 631, 641, 643, 647, 653, 659, 661, 673, 677, 683, 691, 701,
    709, 719, 727, 733, 739, 743, 751, 757, 761, 769, 773, 787, 797, 809,
    811, 821, 823, 827, 829, 839, 853, 857, 859, 863, 877, 881, 883, 887,
    907, 911, 919, 929, 937, 941, 947, 953, 967, 971, 977, 983, 991, 997};
void solve() {
  long long n;
  input(n);
  map<long long, long long> mapx, mapy;
  long long x, y;
  long long ymax = -1;
  long long ymin = INT64_MAX;
  long long xmax = -1;
  long long xmin = INT64_MAX;
  vector<pair<long long, long long>> vp;
  for (long long i = 0; i < 4 * n + 1; i += 1) {
    input(x, y);
    vp.push_back(make_pair(x, y));
    mapx[x] += 1;
    mapy[y] += 1;
    if (mapx[x] >= n && xmax < x) xmax = x;
    if (mapy[y] >= n && ymax < y) ymax = y;
    if (mapx[x] >= n && xmin > x) xmin = x;
    if (mapy[y] >= n && ymin > y) ymin = y;
  };
  long long f;
  for (long long i = 0; i < 4 * n + 1; i += 1) {
    ;
    if (!((vp[i].first <= xmax && vp[i].first >= xmin && vp[i].second <= ymax &&
           vp[i].second >= ymin) &&
          (vp[i].first == xmax || vp[i].first == xmin || vp[i].second == ymax ||
           vp[i].second == ymin))) {
      print(vp[i].first, vp[i].second);
      break;
    }
  }
}
signed main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  cout.tie(NULL);
  ;
  long long tin = 1;
  while (tin--) {
    solve();
  }
  cerr << '\n';
  cerr << "Time elapsed : " << 1.0 * clock() / CLOCKS_PER_SEC << "sec\n";
  return 0;
}
