#include <bits/stdc++.h>
using namespace std;
int M = 998244353;
int main() {
  int n;
  cin >> n;
  vector<pair<int, int> > a, b;
  for (int i = 0; i < n; ++i) {
    int x, y;
    cin >> x >> y;
    a.push_back({x, y});
  }
  sort((a).begin(), (a).end());
  for (int i = 0; i < n; ++i) {
    int x, y;
    cin >> x >> y;
    b.push_back({x, y});
  }
  sort((b).begin(), (b).end());
  cout << a[0].first + b[n - 1].first << " " << a[0].second + b[n - 1].second;
  return 0;
}
