#include <bits/stdc++.h>
using namespace std;
template <typename T>
inline bool chkmin(T &x, T y) {
  return x > y ? x = y, 1 : 0;
}
template <typename T>
inline bool chkmax(T &x, T y) {
  return x < y ? x = y, 1 : 0;
}
template <typename T>
inline void read(T &x) {
  char ch = getchar();
  int f = 1;
  x = 0;
  while (ch < '0' || ch > '9') {
    if (ch == '-') f = -1;
    ch = getchar();
  }
  while (ch >= '0' && ch <= '9') x = x * 10 + ch - '0', ch = getchar();
  x *= f;
}
template <typename T, typename... Args>
inline void read(T &x, Args &...args) {
  read(x), read(args...);
}
int n, x[105], y[105];
bool check(int b) {
  int xl = 1e9, xr = -1, yl = 1e9, yr = -1;
  for (register int i = 1; i <= n; ++i)
    if (i != b) {
      chkmin(xl, x[i]), chkmax(xr, x[i]), chkmin(yl, y[i]), chkmax(yr, y[i]);
    }
  if (xr - xl != yr - yl) return 0;
  if (x[b] == xl && y[b] >= yl && y[b] <= yr) return 0;
  if (x[b] == xr && y[b] >= yl && y[b] <= yr) return 0;
  if (y[b] == yl && x[b] >= xl && x[b] <= xr) return 0;
  if (y[b] == yr && x[b] >= xl && x[b] <= xr) return 0;
  return 1;
}
int main() {
  read(n), n = n * 4 + 1;
  for (register int i = 1; i <= n; ++i) read(x[i], y[i]);
  for (register int i = 1; i <= n; ++i)
    if (check(i)) return 0 * printf("%d %d\n", x[i], y[i]);
  return 0;
}
