#include <bits/stdc++.h>
using namespace std;
typedef struct {
  int x, y;
} pp;
int cmp(pp a, pp b) {
  if (a.x == b.x) {
    return a.y < b.y;
  }
  return a.x < b.x;
}
int main() {
  int n;
  pp a[1005], b[1005];
  cin >> n;
  for (int i = 1; i <= n; i++) {
    cin >> a[i].x >> a[i].y;
  }
  for (int i = 1; i <= n; i++) {
    cin >> b[i].x >> b[i].y;
  }
  sort(a + 1, a + 1 + n, cmp);
  sort(b + 1, b + 1 + n, cmp);
  cout << a[1].x + b[n].x << " " << a[1].y + b[n].y << endl;
  return 0;
}
