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