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