#include <bits/stdc++.h>
using namespace std;
int _toggle(int N, int pos) { return N = N ^ (1 << pos); }
int _set(int N, int pos) { return N = N | (1 << pos); }
int _reset(int N, int pos) { return N = N & ~(1 << pos); }
bool _check(int N, int pos) { return (bool)(N & (1 << pos)); }
bool _upper(char a) { return a >= 'A' && a <= 'Z'; }
bool _lower(char a) { return a >= 'a' && a <= 'z'; }
bool _digit(char a) { return a >= '0' && a <= '9'; }
int dx[] = {1, -1, 0, 0, -1, -1, 1, 1};
int dy[] = {0, 0, 1, -1, -1, 1, -1, 1};
int n, x[50], y[50];
bool check(int id) {
  int lx = 100, rx = -1, ly = 100, ry = -1;
  for (int i = 1; i <= 4 * n + 1; i++) {
    if (i == id) continue;
    lx = min(x[i], lx);
    rx = max(x[i], rx);
    ly = min(y[i], ly);
    ry = max(y[i], ry);
  }
  bool vis[50];
  memset(vis, 0, sizeof(vis));
  int cnt = 0;
  for (int i = 1; i <= 4 * n + 1; i++) {
    if (i == id) continue;
    if (x[i] == lx && y[i] >= ly && y[i] <= ry) cnt++, vis[i] = 1;
  }
  if (cnt < n) return 0;
  cnt = 0;
  for (int i = 1; i <= 4 * n + 1; i++) {
    if (i == id) continue;
    if (x[i] == rx && y[i] >= ly && y[i] <= ry) cnt++, vis[i] = 1;
  }
  if (cnt < n) return 0;
  cnt = 0;
  for (int i = 1; i <= 4 * n + 1; i++) {
    if (i == id) continue;
    if (y[i] == ly && x[i] >= lx && x[i] <= rx) cnt++, vis[i] = 1;
  }
  if (cnt < n) return 0;
  cnt = 0;
  for (int i = 1; i <= 4 * n + 1; i++) {
    if (i == id) continue;
    if (y[i] == ry && x[i] >= lx && x[i] <= rx) cnt++, vis[i] = 1;
  }
  if (cnt < n) return 0;
  for (int i = 1; i <= 4 * n + 1; i++) {
    if (i == id) continue;
    if (!vis[i]) return 0;
  }
  return 1;
}
int main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  cin >> n;
  for (int i = 1; i <= 4 * n + 1; i++) cin >> x[i] >> y[i];
  for (int i = 1; i <= 4 * n + 1; i++) {
    if (check(i)) return cout << x[i] << ' ' << y[i] << '\n', 0;
  }
}
