#include <bits/stdc++.h>
using namespace std;
template <typename T, typename U, typename V, typename W>
auto operator+(const std::pair<T, U> &l, const std::pair<V, W> &r)
    -> std::pair<decltype(l.first + r.first), decltype(l.second + r.second)> {
  return {l.first + r.first, l.second + r.second};
}
template <typename T, typename U, typename V, typename W>
auto operator-(const std::pair<T, U> &l, const std::pair<V, W> &r)
    -> std::pair<decltype(l.first - r.first), decltype(l.second - r.second)> {
  return {l.first - r.first, l.second - r.second};
}
int main() {
  int N;
  cin >> N;
  vector<long long> x(N), y(N), a(N), b(N);
  for (int i = 0; i < N; i++) cin >> x[i] >> y[i];
  for (int i = 0; i < N; i++) cin >> a[i] >> b[i];
  long long sum_x =
      accumulate(x.begin(), x.end(), 0LL) + accumulate(a.begin(), a.end(), 0LL);
  long long sum_y =
      accumulate(y.begin(), y.end(), 0LL) + accumulate(b.begin(), b.end(), 0LL);
  cout << sum_x / N << " " << sum_y / N << endl;
}
