#include <bits/stdc++.h>
using namespace std;
int n;
long long x = 0, y = 0, a, b;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(0);
  cin >> n;
  for (int i = 1; i <= n; i++) {
    cin >> a >> b;
    x += a;
    y += b;
  }
  for (int i = 1; i <= n; i++) {
    cin >> a >> b;
    x += a;
    y += b;
  }
  cout << x / n << " " << y / n;
  return 0;
}
