#include <bits/stdc++.h>
using namespace std;
class Point {
 public:
  int x, y;
  Point(int a, int b) {
    x = a;
    y = b;
  }
  Point() {}
};
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  int n, tempx, tempy;
  cin >> n;
  Point **ob, **cl;
  ob = new Point *[n];
  cl = new Point *[n];
  for (int i = 0; i < n; i++) {
    cin >> tempx >> tempy;
    ob[i] = new Point(tempx, tempy);
  }
  for (int i = 0; i < n; i++) {
    cin >> tempx >> tempy;
    cl[i] = new Point(tempx, tempy);
  }
  Point dpTable[1000][1000];
  for (int i = 0; i < n; i++) {
    for (int j = 0; j < n; j++) {
      dpTable[i][j].x = ob[i]->x + cl[j]->x;
      dpTable[i][j].y = ob[i]->y + cl[j]->y;
    }
  }
  int firx, firy;
  int i, j, k;
  bool entered;
  int count;
  for (k = 0; k < n; k++) {
    firx = 0;
    firy = k;
    count = 0;
    for (i = 1; i < n; i++) {
      entered = false;
      for (j = 0; j < n; j++) {
        if (dpTable[i][j].x == dpTable[firx][firy].x &&
            dpTable[i][j].y == dpTable[firx][firy].y) {
          entered = true;
          break;
        }
      }
      if (entered) {
        count++;
      } else {
        break;
      }
    }
    if (count == n - 1) {
      break;
    }
  }
  cout << dpTable[firx][firy].x << " ";
  ;
  cout << dpTable[firx][firy].y << "\n";
  ;
  return 0;
}
