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