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