#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  int x[n];
  int y[n];
  for (int i = 0; i < n; i++) {
    cin >> x[i] >> y[i];
  }
  int a[n];
  int b[n];
  for (int i = 0; i < n; i++) {
    cin >> a[i] >> b[i];
  }
  map<pair<int, int>, int> mp;
  pair<int, int> ans;
  for (int i = 0; i < n; i++) {
    for (int j = 0; j < n; j++) {
      pair<int, int> p;
      p = make_pair(x[i] + a[j], y[i] + b[j]);
      mp[p]++;
      if (mp[p] == n) {
        cout << p.first << " " << p.second << endl;
        return 0;
      }
    }
  }
}
