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