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