#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(0);
  cin.tie(NULL);
  int n;
  cin >> n;
  int x[n], y[n], a[n], b[n];
  for (int i = 0; i < n; i++) {
    cin >> x[i] >> y[i];
  }
  for (int i = 0; i < n; i++) {
    cin >> a[i] >> b[i];
  }
  int tx, ty;
  for (int i = 0; i < n; i++) {
    map<pair<int, int>, int> m;
    for (int i = 0; i < n; i++) {
      m[{a[i], b[i]}]++;
    }
    int flag = 1;
    tx = x[0] + a[i];
    ty = y[0] + b[i];
    m[{a[i], b[i]}]--;
    for (int j = 1; j < n; j++) {
      int p1 = tx - x[j];
      int p2 = ty - y[j];
      if (m[{p1, p2}]) {
        m[{p1, p2}]--;
      } else {
        flag = 0;
        break;
      }
    }
    if (flag) {
      cout << tx << ' ' << ty;
      break;
    }
  }
}
