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