#include <bits/stdc++.h>
using namespace std;
int main() {
  int64_t n;
  cin >> n;
  vector<pair<int64_t, int64_t>> v(n);
  int64_t sum1 = 0;
  int64_t sum2 = 0;
  int64_t sum3 = 0;
  int64_t sum4 = 0;
  for (int i = 0; i < n; i++) {
    cin >> v[i].first >> v[i].second;
    sum1 = sum1 + v[i].first;
    sum2 = sum2 + v[i].second;
  }
  vector<pair<int64_t, int64_t>> u(n);
  for (int i = 0; i < n; i++) {
    cin >> u[i].first >> u[i].second;
    sum3 = sum3 + u[i].first;
    sum4 = sum4 + u[i].second;
  }
  cout << (sum1 + sum3) / n << " " << (sum2 + sum4) / n;
}
