#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  pair<int, int> c[n];
  pair<int, int> d[n];
  pair<int, int> minc;
  pair<int, int> maxd;
  for (int i = 0; i < n; ++i) {
    cin >> c[i].first >> c[i].second;
    if (i == 0) {
      minc = c[i];
    } else {
      if (c[i].first == minc.first) {
        if (c[i].second < minc.second) minc = c[i];
      } else if (c[i].first < minc.first) {
        minc = c[i];
      }
    }
  }
  for (int i = 0; i < n; ++i) {
    cin >> d[i].first >> d[i].second;
    if (i == 0) {
      maxd = d[i];
    } else {
      if (d[i].first == maxd.first) {
        if (d[i].second > maxd.second) maxd = d[i];
      } else if (d[i].first > maxd.first)
        maxd = d[i];
    }
  }
  cout << minc.first + maxd.first << " " << minc.second + maxd.second << endl;
  return 0;
}
