#include <bits/stdc++.h>
using namespace std;
const int N = 1234;
int x[N], y[N], a[N], b[N];
map<pair<int, int>, bool> m;
int main() {
  ios::sync_with_stdio(false);
  cin.tie(NULL);
  cout.tie(NULL);
  int n;
  cin >> n;
  for (int i = 1; i <= n; i++) {
    cin >> x[i] >> y[i];
    m[make_pair(x[i], y[i])] = 1;
  }
  for (int i = 1; i <= n; i++) cin >> a[i] >> b[i];
  for (int i = 1; i <= n; i++) {
    bool ok = 1;
    int x1 = x[1] + a[i];
    int y1 = y[1] + b[i];
    for (int j = 1; j <= n; j++) {
      if (j == i) continue;
      if (!m[make_pair(x1 - a[j], y1 - b[j])]) {
        ok = 0;
        break;
      }
    }
    if (ok) {
      cout << x1 << " " << y1 << endl;
      return 0;
    }
  }
  return 0;
}
