#include <bits/stdc++.h>
using namespace std;
int main() {
  long long n, x = 0, y = 0, x1, y1;
  cin >> n;
  for (long long i = 0; i < 2 * n; i++) {
    cin >> x1;
    cin >> y1;
    x = x + x1;
    y = y + y1;
  }
  cout << x / n << " " << y / n;
  return 0;
}
