#include <bits/stdc++.h>
using namespace std;
void solve() {
  int n;
  cin >> n;
  vector<pair<int, int> > xywaala(n);
  vector<pair<int, int> > abwaala(n);
  int x, y;
  for (int i = 0; i < n; i++) {
    cin >> x >> y;
    xywaala[i] = make_pair(x, y);
  }
  for (int i = 0; i < n; i++) {
    cin >> x >> y;
    abwaala[i] = make_pair(x, y);
  }
  sort(xywaala.begin(), xywaala.end());
  sort(abwaala.begin(), abwaala.end());
  cout << xywaala[0].first + abwaala[n - 1].first << " "
       << xywaala[0].second + abwaala[n - 1].second << endl;
}
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(0);
  cout.tie(0);
  long long int t = 1;
  for (long long int i = 0; i < t; i++) {
    solve();
  }
  return 0;
}
