#include <bits/stdc++.h>
using namespace std;
const int N = 5e5 + 5, nBits = 2e8 + 5, MM = (1 << 16), MAX = 1111,
          OO = 0x3f3f3f3f, MOD = 1e9 + 7, inf = 1 << 30;
const long long INF = (long long)1e18;
long long fact(long long z) { return (z <= 1) ? 1 : z * fact(z - 1); }
int n, x, y, maxii, A[1001], B[1001];
map<pair<int, int>, int> mp;
long long a, b;
int main() {
  std::ios_base::sync_with_stdio(0);
  cin.tie(NULL);
  cout.tie(NULL);
  cin >> n;
  for (int i = 1; i <= n * 2; ++i) {
    cin >> x >> y;
    a += x, b += y;
  }
  cout << a / n << " " << b / n << endl;
  return 0;
}
