#include <bits/stdc++.h>
const long long INF = 2e18;
const long long md = 1e9 + 7;
using namespace std;
struct str {
  long long c, p, q, w;
};
long long n;
pair<long long, long long> a[100];
bool used[100][100];
bool dot[100][100];
int32_t main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  ;
  cin >> n;
  for (long long i = 1; i <= 4 * n + 1; i++) {
    cin >> a[i].first >> a[i].second;
    dot[a[i].first][a[i].second] = true;
  }
  sort(a + 1, a + 4 * n + 2);
  for (long long x1 = 0; x1 <= 50; x1++) {
    for (long long x2 = x1 + 1; x2 <= 50; x2++) {
      long long r = x2 - x1;
      for (long long y1 = 0; y1 <= 50; y1++) {
        long long y2 = y1 + r;
        if (y2 > 50) {
          break;
        }
        long long x = x1;
        long long y = y1;
        long long cnt = 0;
        for (y = y1; y <= y2; y++) {
          if (dot[x][y]) {
            cnt += !used[x][y];
            used[x][y] = true;
          }
        }
        y = y1;
        for (x = x1; x <= x2; x++) {
          if (dot[x][y]) {
            cnt += !used[x][y];
            used[x][y] = true;
          }
        }
        x = x1;
        y = y2;
        for (x = x1; x <= x2; x++) {
          if (dot[x][y]) {
            cnt += !used[x][y];
            used[x][y] = true;
          }
        }
        x = x2;
        y = y1;
        for (y = y1; y <= y2; y++) {
          if (dot[x][y]) {
            cnt += !used[x][y];
            used[x][y] = true;
          }
        }
        if (cnt == 4 * n) {
          for (long long i = 1; i <= 4 * n + 1; i++) {
            if (!used[a[i].first][a[i].second]) {
              cout << a[i].first << " " << a[i].second << endl;
              return 0;
            }
          }
        }
        for (long long i = 1; i <= 4 * n + 1; i++) {
          used[a[i].first][a[i].second] = false;
        }
      }
    }
  }
}
