#include <bits/stdc++.h>
using namespace std;
int minx = 1e9, miny = 1e9, maxx = -1e9, maxy = -1e9, n;
int main() {
  cin >> n;
  for (int i = 1; i <= n; i++) {
    int a, b;
    scanf("%d%d", &a, &b);
    if (a < minx || (a == minx && b < miny)) {
      minx = a;
      miny = b;
    }
  }
  for (int i = 1; i <= n; i++) {
    int a, b;
    scanf("%d%d", &a, &b);
    if (a > maxx || (a == maxx && b > maxy)) {
      maxx = a;
      maxy = b;
    }
  }
  printf("%d %d", minx + maxx, miny + maxy);
}
