#include <bits/stdc++.h>
using namespace std;
vector<pair<long long int, long long int>> v, vv;
int main() {
  long long int n, x, xx = 0, yy = 0, i, j, y, a, aa = 0, bb = 0, b;
  cin >> n;
  for (i = 0; i < n; i++) {
    cin >> x >> y;
    v.push_back(make_pair(x, y));
    xx += x;
    yy += y;
  }
  for (i = 0; i < n; i++) {
    cin >> a >> b;
    vv.push_back(make_pair(a, b));
    aa += a;
    bb += b;
  }
  cout << (xx + aa) / n << " " << (yy + bb) / n;
  return 0;
}
