#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  vector<vector<int>> a;
  vector<vector<int>> b;
  for (int i = 0; i < n; i++) {
    vector<int> x(2);
    cin >> x[0] >> x[1];
    a.push_back(x);
  }
  for (int i = 0; i < n; i++) {
    vector<int> x(2);
    cin >> x[0] >> x[1];
    b.push_back(x);
  }
  sort(a.begin(), a.end());
  sort(b.begin(), b.end());
  reverse(b.begin(), b.end());
  int k = a[0][0] + b[0][0];
  int l = a[0][1] + b[0][1];
  cout << k << " " << l;
  return 0;
}
