#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  vector<pair<int, int>> a(n), b(n);
  for (int i = 0; i < n; i++) cin >> a[i].first >> a[i].second;
  for (int i = 0; i < n; i++) cin >> b[i].first >> b[i].second;
  multiset<pair<int, int>> s1;
  for (int i = 0; i < n; i++) {
    s1.insert({a[0].first - a[i].first, a[0].second - a[i].second});
  }
  for (int i = 0; i < n; i++) {
    int x = a[0].first + b[i].first;
    int y = a[0].second + b[i].second;
    multiset<pair<int, int>> s2;
    for (int j = 0; j < n; j++)
      s2.insert({-b[i].first + b[j].first, -b[i].second + b[j].second});
    if (s1 == s2) {
      cout << x << ' ' << y;
      cin >> x;
      return 0;
    }
  }
  int aa;
  cin >> aa;
}
