#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  cout.tie(NULL);
  long long n, p = 2000000, q = 2000000, x = -20000000, y = -2000000, a, b, i;
  cin >> n;
  for (i = 0; i < n; i++) {
    cin >> a >> b;
    if (a <= p) {
      if (a == p) {
        if (b <= q) {
          p = a;
          q = b;
        }
      } else {
        p = a;
        q = b;
      }
    }
  }
  for (i = 0; i < n; i++) {
    cin >> a >> b;
    if (a >= x) {
      if (a == x) {
        if (b >= y) {
          x = a;
          y = b;
        }
      } else {
        x = a;
        y = b;
      }
    }
  }
  cout << x + p << " " << y + q << endl;
  return 0;
}
