#include <bits/stdc++.h>
using namespace std;
pair<int, int> operator+(pair<int, int> a, pair<int, int> b) {
  return {a.first + b.first, a.second + b.second};
}
pair<int, int> operator-(pair<int, int> a, pair<int, int> b) {
  return {a.first - b.first, a.second - b.second};
}
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(0);
  cout.tie(0);
  int n;
  cin >> n;
  vector<pair<int, int> > a(n);
  for (int i = 0; i < n; ++i) {
    cin >> a[i].first >> a[i].second;
  }
  vector<pair<int, int> > b(n);
  for (int i = 0; i < n; ++i) {
    cin >> b[i].first >> b[i].second;
  }
  for (int i = 0; i < n; ++i) {
    pair<int, int> res = a[0] + b[i];
    map<pair<int, int>, int> mapa;
    for (int j = 0; j < n; ++j) {
      if (i == j) {
        continue;
      }
      ++mapa[b[j]];
    }
    bool ok = true;
    for (int j = 1; j < n; ++j) {
      pair<int, int> x = res - a[j];
      if (!mapa.count(x)) {
        ok = false;
        break;
      }
      --mapa[x];
      if (mapa[x] == 0) {
        mapa.erase(x);
      }
    }
    if (ok) {
      cout << res.first << " " << res.second << "\n";
    }
  }
}
