#include <bits/stdc++.h>
using namespace std;
int main() {
  std::cin.tie(0);
  std::ios::sync_with_stdio(false);
  int n, x, y;
  cin >> n;
  vector<pair<int, int> > v1(n), v2(n);
  map<pair<int, int>, bool> maap, temp;
  for (int i = 0; i < n; i++) {
    cin >> v1[i].first >> v1[i].second;
  }
  for (int i = 0; i < n; i++) {
    cin >> v2[i].first >> v2[i].second;
    maap[{v2[i].first, v2[i].second}] = 1;
  }
  for (int i = 0; i < n; i++) {
    temp = maap;
    x = v1[0].first + v2[i].first;
    y = v1[0].second + v2[i].second;
    for (int h = 0; h < n; h++) {
      if (temp.find({x - v1[h].first, y - v1[h].second}) != temp.end()) {
        temp.erase({x - v1[h].first, y - v1[h].second});
      } else
        break;
    }
    if (temp.size() == 0) {
      cout << x << " " << y << endl;
      return 0;
    }
  }
  return 0;
}
