#include <bits/stdc++.h>
using namespace std;
const int N = 1e3 + 7;
int n;
int a[N], b[N], x[N], y[N];
int main() {
  scanf("%d", &n);
  for (int i = 1; i <= n; i++) {
    scanf("%d%d", &a[i], &b[i]);
  }
  for (int i = 1; i <= n; i++) {
    scanf("%d%d", &x[i], &y[i]);
  }
  sort(a + 1, a + 1 + n);
  sort(b + 1, b + 1 + n);
  sort(x + 1, x + 1 + n);
  sort(y + 1, y + 1 + n);
  cout << a[1] + x[n] << " " << b[1] + y[n] << endl;
  return 0;
}
