#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  long long n;
  cin >> n;
  long long sum1 = 0, sum2 = 0;
  for (long long i = 1; i <= 2 * n; i++) {
    long long x, y;
    cin >> x >> y;
    sum1 += x;
    sum2 += y;
  }
  cout << sum1 / n << ' ' << sum2 / n << endl;
}
