#include <bits/stdc++.h>
using namespace std;
long long gcd(long long a, long long b) { return b == 0 ? a : gcd(b, a % b); }
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  cout.precision(10);
  int t = 1;
  while (t--) {
    long long n, m, o;
    cin >> n;
    long long ax = -200000000000000ll, ay = -200000000000000ll,
              x = 200000000000000ll, y = 200000000000000ll;
    long long a, b;
    for (long long i = 0, _n = (n); i < _n; i++) {
      cin >> a >> b;
      x = min(a, x);
      y = min(b, y);
    }
    for (long long i = 0, _n = (n); i < _n; i++) {
      cin >> a >> b;
      ax = max(ax, a);
      ay = max(ay, b);
    }
    cout << ax + x << " " << ay + y;
  }
}
