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