#include <bits/stdc++.h>
using namespace std;
pair<int, int> toado[1002];
pair<int, int> vectorr[1002];
unsigned int n;
int main() {
  long long t1, t;
  cin >> n;
  for (int i = 1; i <= n; i++) cin >> toado[i].first >> toado[i].second;
  for (int i = 1; i <= n; i++) cin >> vectorr[i].first >> vectorr[i].second;
  sort(toado + 1, toado + n + 1);
  sort(vectorr + 1, vectorr + n + 1);
  cout << toado[1].first + vectorr[n].first << ' '
       << toado[1].second + vectorr[n].second;
  return 0;
}
