#include <bits/stdc++.h>
using namespace std;
int main() {
  long long n;
  cin >> n;
  long long m = 2 * n;
  long long suma = 0, sumb = 0;
  while (m--) {
    long long x, y;
    cin >> x >> y;
    suma += x;
    sumb += y;
  }
  cout << suma / n << " " << sumb / n << endl;
}
