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