#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  vector<pair<int, int>> ob(n), clue(n);
  for (int i = 0; i < n; i++) {
    cin >> ob[i].first >> ob[i].second;
  }
  for (int i = 0; i < n; i++) {
    cin >> clue[i].first >> clue[i].second;
  }
  sort(ob.begin(), ob.end());
  sort(clue.begin(), clue.end());
  reverse(clue.begin(), clue.end());
  cout << ob[0].first + clue[0].first << " " << ob[0].second + clue[0].second
       << endl;
}
