#include <bits/stdc++.h>
using namespace std;
struct node {
  int x, y;
} p1[1100], p2[1100];
int main() {
  int n;
  cin >> n;
  long long sumx = 0, sumy = 0;
  for (int i = 1; i <= n; i++) {
    int x, y;
    cin >> x >> y;
    sumx += x;
    sumy += y;
  }
  for (int i = 1; i <= n; i++) {
    int x, y;
    cin >> x >> y;
    sumx += x;
    sumy += y;
  }
  cout << sumx / n << " " << sumy / n << endl;
  return 0;
}
