#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  long long x[1000], y[1000], a[1000], b[1000];
  while (cin >> n) {
    for (int i = 0; i < n; i++) {
      cin >> x[i] >> y[i];
    }
    for (int i = 0; i < n; i++) {
      cin >> a[i] >> b[i];
    }
    long long resx, resy;
    map<pair<long long, long long>, set<pair<long long, long long>>> tracker;
    map<pair<long long, long long>, set<pair<long long, long long>>>::iterator
        it;
    for (int i = 0; i < n; i++) {
      for (int j = 0; j < n; j++) {
        resx = x[i] + a[j];
        resy = y[i] + b[j];
        tracker[make_pair(resx, resy)].insert(make_pair(i, j));
      }
    }
    for (it = tracker.begin(); it != tracker.end(); it++) {
      if (it->second.size() == n) {
        map<int, int> tmap;
        set<pair<long long, long long>>::iterator itt;
        bool f = true;
        for (itt = it->second.begin(); itt != it->second.end(); itt++) {
          if (tmap.count(itt->second) == 0) {
            tmap[itt->second] = itt->first;
          } else {
            f = false;
            break;
          }
        }
        if (b) {
          cout << it->first.first << " " << it->first.second << endl;
          break;
        }
      }
    }
  }
  return 0;
}
