#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, x, y, a, b;
  cin >> n;
  int minX = INT_MAX;
  int minY = INT_MAX;
  for (int i = 0; i < n; i++) {
    cin >> x >> y;
    if (x < minX) {
      minX = x;
      minY = y;
    } else if (x == minX) {
      minY = min(minY, y);
    }
  }
  int maxX = INT_MIN;
  int maxY = INT_MIN;
  for (int i = 0; i < n; i++) {
    cin >> a >> b;
    if (a > maxX) {
      maxX = a;
      maxY = b;
    } else if (a == maxX) {
      maxY = max(maxY, b);
    }
  }
  cout << minX + maxX << " " << minY + maxY << endl;
  return 0;
}
