#include <bits/stdc++.h>
using namespace std;
map<pair<int, int>, int> m;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  int n;
  cin >> n;
  vector<pair<int, int> > v(n), w(n);
  for (int i = 0; i < n; i++) {
    cin >> v[i].first >> v[i].second;
  }
  for (int i = 0; i < n; i++) {
    cin >> w[i].first >> w[i].second;
  }
  for (auto a : v) {
    for (auto b : w) {
      m[{a.first + b.first, a.second + b.second}]++;
    }
  }
  pair<int, int> mx;
  int x = 0;
  for (auto a : m) {
    if (a.second > x) {
      x = a.second;
      mx = a.first;
    }
  }
  cout << mx.first << " " << mx.second << endl;
}
