#include <bits/stdc++.h>
using namespace std;
int main(void) {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  long long n, x, y;
  cin >> n;
  vector<pair<long long, long long>> a, b;
  for (long long i = 0; i < n; i++) {
    cin >> x >> y;
    a.push_back(make_pair(x, y));
  }
  for (long long i = 0; i < n; i++) {
    cin >> x >> y;
    b.push_back(make_pair(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;
  return 0;
}
