#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  long long n;
  cin >> n;
  long long sumx = 0;
  long long sumy = 0;
  for (long long i = 0; i < n; i++) {
    long long a, b;
    cin >> a >> b;
    sumx += a;
    sumy += b;
  }
  for (long long i = 0; i < n; i++) {
    long long a, b;
    cin >> a >> b;
    sumx += a;
    sumy += b;
  }
  cout << sumx / n << " " << sumy / n << '\n';
  return 0;
}
