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