#include <bits/stdc++.h>
using namespace std;
int n;
int main() {
  ios::sync_with_stdio(false);
  cin.tie(0);
  cin >> n;
  long long sum_x = 0, sum_y = 0;
  for (int i = 1; i <= (n << 1); ++i) {
    long long x, y;
    cin >> x >> y;
    sum_x += x, sum_y += y;
  }
  sum_x /= (1LL * n), sum_y /= (1LL * n);
  cout << sum_x << " " << sum_y << endl;
  return 0;
}
