#include <bits/stdc++.h>
using namespace std;
const double PI = acos(-1.0);
const double eps = 1e-6;
const int INF = 0x3f3f3f3f;
const int maxn = 100;
long long T, n, m;
int main() {
  long long x, y, z;
  while (cin >> n) {
    x = 0;
    y = 0;
    for (int i = 0; i < 2 * n; i++) {
      cin >> z;
      x += z;
      cin >> z;
      y += z;
    }
    cout << x / n << " " << y / n << endl;
  }
  return 0;
}
