#include <bits/stdc++.h>
using namespace std;
int main() {
  ios::sync_with_stdio(false);
  long long int n, k, p, a, b, minIn = 0, min = 1000000;
  cin >> n;
  vector<pair<long long, long long>> z, y;
  for (int i = 0; i < n; i++) {
    cin >> k >> p;
    z.push_back(make_pair(k, p));
  }
  sort(z.begin(), z.end());
  a = z[0].first;
  b = z[0].second;
  for (int i = 0; i < n; i++) {
    cin >> k >> p;
    y.push_back(make_pair(k, p));
  }
  sort(y.begin(), y.end());
  cout << y[n - 1].first + a << " " << y[n - 1].second + b;
}
