#include <bits/stdc++.h>
using namespace std;
int main() {
  long long int sum1 = 0, sum2 = 0;
  int t1, t2;
  int n;
  cin >> n;
  for (int i = 0; i < 2 * n; i++) {
    cin >> t1 >> t2;
    sum1 += t1;
    sum2 += t2;
  }
  cout << sum1 / n << " " << sum2 / n;
}
