#include <bits/stdc++.h>
using namespace std;
int main() {
  ios::sync_with_stdio(false);
  cin.tie(0);
  int n;
  cin >> n;
  vector<vector<long long int>> grid(51, vector<long long int>(51, 0));
  vector<pair<long long int, long long int>> a;
  int t1 = 4 * n + 1;
  while (t1--) {
    int u, v;
    cin >> u >> v;
    a.push_back({u, v});
    grid[u][v] = 1;
  }
  t1 = 4 * n + 1;
  for (int stx = 0; stx < 50; stx++) {
    for (int enx = stx + 1; enx < 51; enx++) {
      for (int sty = 0; sty < 50; sty++) {
        for (int eny = sty + 1; eny < 51; eny++) {
          long long int cnt = 0, c1 = 0, c2 = 0, c3 = 0, c4 = 0;
          for (int j = sty; j <= eny; j++) {
            if (grid[stx][j] == 1) {
              cnt++;
              c1++;
              if (j == sty) {
                c2++;
              }
              if (j == eny) {
                c4++;
              }
            }
            if (grid[enx][j] == 1) {
              cnt++;
              c3++;
              if (j == sty) {
                c2++;
              }
              if (j == eny) {
                c4++;
              }
            }
          }
          for (int j = stx + 1; j <= enx - 1; j++) {
            if (grid[j][sty] == 1) {
              cnt++;
              c2++;
            }
            if (grid[j][eny] == 1) {
              cnt++;
              c4++;
            }
          }
          if (cnt == 4 * n && c1 >= n && c2 >= n && c3 >= n && c4 >= n) {
            for (int i = 0; i < a.size(); i++) {
              if (a[i].first != stx && a[i].first != enx &&
                  a[i].second != sty && a[i].second != eny) {
                cout << a[i].first << " " << a[i].second;
                return 0;
              }
              if (a[i].first == stx || a[i].first == enx) {
                if (a[i].second < sty || a[i].second > eny) {
                  cout << a[i].first << " " << a[i].second;
                  return 0;
                }
              }
              if (a[i].second == sty || a[i].second == eny) {
                if (a[i].first < stx || a[i].first > enx) {
                  cout << a[i].first << " " << a[i].second;
                  return 0;
                }
              }
            }
          }
        }
      }
    }
  }
}
