#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(0);
  int n;
  cin >> n;
  vector<pair<int, int> > xy(n), ab(n);
  for (int i = 0; i < n; i++) {
    cin >> xy[i].first >> xy[i].second;
  }
  for (int i = 0; i < n; i++) {
    cin >> ab[i].first >> ab[i].second;
  }
  map<pair<int, int>, int> m;
  for (int i = 0; i < n; i++) {
    for (int j = 0; j < n; j++) {
      pair<int, int> pr = {xy[i].first + ab[j].first,
                           xy[i].second + ab[j].second};
      if (m.count(pr)) {
        m[pr]++;
      } else {
        m.insert({pr, 1});
      }
    }
  }
  for (auto i : m) {
    if (i.second == n) {
      cout << i.first.first << " " << i.first.second;
      break;
    }
  }
  return 0;
}
