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