#include <bits/stdc++.h>
using namespace std;
int main() {
  long long ansx = 0, ansy = 0;
  int n, x, y;
  scanf("%d", &n);
  for (int i = 0; i < 2 * n; i++) {
    scanf("%d%d", &x, &y);
    ansx += x;
    ansy += y;
  }
  ansx /= n;
  ansy /= n;
  printf("%lld %lld\n", ansx, ansy);
  return 0;
}
