#include <bits/stdc++.h>
using namespace std;
const int maxn = 1e6 + 7;
const int mod = 998244353;
long long read() {
  long long c = getchar(), Nig = 1, x = 0;
  while (!isdigit(c)) c = getchar();
  if (c == '-') Nig = -1, c = getchar();
  while (isdigit(c)) x = ((x << 1) + (x << 3)) + (c ^ '0'), c = getchar();
  return Nig * x;
}
int main() {
  long long n = read();
  long long x = 0, y = 0, a, b;
  for (int i = 1; i <= n; i++) {
    scanf("%lld %lld", &a, &b);
    x += a;
    y += b;
  }
  for (int i = 1; i <= n; i++) {
    scanf("%lld %lld", &a, &b);
    x += a;
    y += b;
  }
  printf("%lld %lld\n", x / n, y / n);
  return 0;
}
