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