#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, Tx, Ty;
  cin >> n;
  pair<int, int> xy[n], ab[n];
  for (int i = 0; i < n; i++) {
    cin >> xy[i].first >> xy[i].second;
  }
  for (int i = 0; i < n; i++) {
    cin >> ab[i].first >> ab[i].second;
  }
  cout << max_element(xy, xy + n)->first + min_element(ab, ab + n)->first << ' '
       << max_element(xy, xy + n)->second + min_element(ab, ab + n)->second;
}
