#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(0);
  cout.tie(0);
  long long int n, x, y, sum1, sum2;
  cin >> n;
  sum1 = 0;
  sum2 = 0;
  vector<pair<long long int, long long int>> pa;
  for (int i = 0; i < (2 * n); i++) {
    cin >> x >> y;
    pa.push_back(make_pair(x, y));
    sum1 = sum1 + pa[i].first;
    sum2 = sum2 + pa[i].second;
  }
  cout << (sum1 / n) << " " << (sum2 / n);
  return 0;
}
