#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  vector<pair<long long, long long> > v1, v2;
  for (int i = 0; i < n; ++i) {
    long long a, b;
    cin >> a >> b;
    v1.push_back({a, b});
  }
  for (int i = 0; i < n; ++i) {
    long long a, b;
    cin >> a >> b;
    v2.push_back({a, b});
  }
  sort(v1.begin(), v1.end());
  sort(v2.begin(), v2.end());
  cout << v1[0].first + v2[n - 1].first << " "
       << v1[0].second + v2[n - 1].second;
  return 0;
}
