#include <bits/stdc++.h>
using namespace std;
pair<long long, long long> p1[1005];
pair<long long, long long> p2[1005];
vector<long long> v;
int main() {
  long long i, j, n, x, y, a, b;
  cin >> n;
  for (i = 0; i < n; i++) cin >> p1[i].first >> p1[i].second;
  for (i = 0; i < n; i++) cin >> p2[i].first >> p2[i].second;
  sort(p1, p1 + n);
  sort(p2, p2 + n);
  cout << p1[0].first + p2[n - 1].first << " "
       << p1[0].second + p2[n - 1].second;
}
