#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  int t = n;
  int t1 = n;
  long long int x = 0, y = 0;
  while (n--) {
    int a, b;
    cin >> a >> b;
    x += a;
    y += b;
  }
  while (t--) {
    int a, b;
    cin >> a >> b;
    x += a;
    y += b;
  }
  cout << x / t1 << " " << y / t1;
}
