#include <bits/stdc++.h>
using namespace std;
map<long long int, long long int> mp, mk;
set<long long int> s1, s2;
vector<int> v, w;
string s = "", qq = "", ss = "", pp = "";
char ch;
long long int m, n, i, j, l, r, x, t, y, u, g, h, mn, mx, d, z, c, f, e, k;
int main() {
  cin >> n;
  for (i = 1; i <= 2 * n; i++) {
    cin >> x >> y;
    c += x;
    d += y;
  }
  cout << c / n << " " << d / n;
}
