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