#include <bits/stdc++.h>
using namespace std;
int main() {
  ios::sync_with_stdio(false);
  int n;
  cin >> n;
  vector<int> x(n), y(n), a(n), b(n);
  for (int i = 0; i < n; ++i) cin >> x[i] >> y[i];
  map<pair<int, int>, int> cnt;
  for (int i = 0; i < n; ++i) {
    cin >> a[i] >> b[i];
    for (int j = 0; j < n; ++j) cnt[{a[i] + x[j], b[i] + y[j]}]++;
  }
  for (auto &it : cnt)
    if (it.second >= n) {
      cout << it.first.first << ' ' << it.first.second << endl;
      return 0;
    }
}
