#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  long long X = 0, Y = 0;
  for (int i = 0; i < 2 * n; i++) {
    int x, y;
    cin >> x >> y;
    X += x;
    Y += y;
  }
  cout << X / n << " " << Y / n << endl;
}
