#include <bits/stdc++.h>
using namespace std;
template <typename T>
ostream& operator<<(ostream& os, vector<T>& v) {
  os << "[";
  for (int i = 0; i < v.size(); i++) {
    os << v[i];
    if (i != v.size() - 1) os << ", ";
  }
  return os << "]\n";
}
int main() {
  int n;
  cin >> n;
  pair<int, int> a[n], b[n];
  for (int i = 0; i < n; i++) cin >> a[i].first >> a[i].second;
  for (int i = 0; i < n; i++) cin >> b[i].first >> b[i].second;
  sort(a, a + n);
  reverse(a, a + n);
  sort(b, b + n);
  cout << a[0].first + b[0].first << ' ' << a[0].second + b[0].second << '\n';
  return 0;
}
