#include <bits/stdc++.h>
using namespace std;
int main() {
  ios::sync_with_stdio(false);
  cin.tie(0);
  cout.tie(0);
  int n;
  cin >> n;
  int x, y, a, b, minx = 1e7, maxa = -1e7, miny = 1e7, maxb = -1e7;
  for (int i = 0; i < n; ++i) {
    cin >> x >> y;
    if (x < minx) minx = x;
    if (y < miny) miny = y;
  }
  for (int i = 0; i < n; ++i) {
    cin >> a >> b;
    if (a > maxa) maxa = a;
    if (b > maxb) maxb = b;
  }
  cout << minx + maxa << " " << miny + maxb << endl;
  return 0;
}
