#include <bits/stdc++.h>
using namespace std;
int main() {
  long long i, n, j, k, f, c, y, z;
  cin >> n;
  vector<pair<long long, long long>> p;
  vector<pair<long long, long long>> q;
  vector<pair<long long, long long>> x;
  long long r[2];
  for (i = 0; i < n; i++) {
    cin >> y >> z;
    p.push_back({y, z});
  }
  for (i = 0; i < n; i++) {
    cin >> y >> z;
    q.push_back({y, z});
  }
  k = 0;
  for (i = 0; i < n; i++) {
    for (j = 0; j < n; j++) {
      y = p[i].first + q[j].first;
      z = p[i].second + q[j].second;
      x.push_back({y, z});
    }
  }
  sort(x.begin(), x.end());
  f = 0;
  c = 0;
  r[0] = x[0].first;
  r[1] = x[0].second;
  for (i = 0; i < n * n - 1; i++) {
    if (x[i].first == x[i + 1].first && x[i].second == x[i + 1].second) {
      f++;
    } else {
      if (f > c) {
        c = f;
        r[0] = x[i].first;
        r[1] = x[i].second;
      }
      f = 0;
    }
  }
  cout << r[0] << " " << r[1] << "\n";
  return 0;
}
