#include <bits/stdc++.h>
using namespace std;
struct point {
  int x, y;
};
bool cmp(point u, point v) { return u.x < v.x || (u.x == v.x && u.y < v.y); }
bool re_cmp(point u, point v) { return u.x > v.x || (u.x == v.x && u.y > v.y); }
int n;
point a[1000], b[1000];
int main() {
  cin >> n;
  for (int i = 0; i < n; i++) {
    cin >> a[i].x >> a[i].y;
  }
  for (int i = 0; i < n; i++) {
    cin >> b[i].x >> b[i].y;
  }
  sort(a, a + n, cmp);
  sort(b, b + n, re_cmp);
  cout << a[0].x + b[0].x << " " << a[0].y + b[0].y;
  return 0;
}
