#include <bits/stdc++.h>
using namespace std;
const int INF = 1000 * 1000 * 1000;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(0);
  cout.tie(0);
  int n;
  cin >> n;
  pair<int, int> minp1(INF, INF), minp2(INF, INF);
  for (int i = 0; i < n; i++) {
    int x, y;
    cin >> x >> y;
    minp1 = min(minp1, pair<int, int>(x, y));
  }
  for (int i = 0; i < n; i++) {
    int x, y;
    cin >> x >> y;
    x *= -1;
    y *= -1;
    minp2 = min(minp2, pair<int, int>(x, y));
  }
  cout << minp1.first - minp2.first << " " << minp1.second - minp2.second;
}
