#include <bits/stdc++.h>
using namespace std;
bool compareInterval(pair<long long int, long long int> a,
                     pair<long long int, long long int> b) {
  if (a.first == b.first) {
    return a.second > b.second;
  }
  return (a.first > b.first);
}
bool compareInterval1(pair<long long int, long long int> a,
                      pair<long long int, long long int> b) {
  if (a.first == b.first) {
    return a.second < b.second;
  }
  return (a.first < b.first);
}
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  long long int t;
  t = 1;
  long long int n, n1, m1, m, k, ans, i, j;
  vector<pair<long long, long long> > a, b;
  while (t--) {
    cin >> n;
    a.resize(n);
    b.resize(n);
    for (i = 0; i < n; i++) {
      cin >> a[i].first >> a[i].second;
    }
    sort(a.begin(), a.end(), compareInterval1);
    for (i = 0; i < n; i++) {
      cin >> b[i].first >> b[i].second;
    }
    sort(b.begin(), b.end(), compareInterval);
    i = 0;
    cout << a[0].first + b[0].first << " " << a[0].second + b[0].second << "\n";
  }
  return 0;
}
