#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  int a, b;
  long long sumx = 0, sumy = 0;
  cin >> n;
  for (int i = 0; i < 2 * n; i++) {
    cin >> a >> b;
    sumx += a;
    sumy += b;
  }
  if (sumx) sumx = sumx / n;
  if (sumy) sumy = sumy / n;
  cout << sumx << " " << sumy;
}
