#include <bits/stdc++.h>
using namespace std;
ifstream fin("AAtest.in.txt");
long long n;
pair<int, int> p[1005], s[1005], vas;
int main() {
  ios::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  cerr.tie(0);
  cin >> n;
  int a, b;
  for (int(i) = (0); ((i)) < ((n)); ((i))++) {
    cin >> a >> b;
    p[i] = {a, b};
  }
  for (int(i) = (0); ((i)) < ((n)); ((i))++) {
    cin >> a >> b;
    s[i] = {a, b};
  }
  if (n == 1) {
    cout << p[0].first + s[0].first << " " << s[0].second + p[0].second << endl;
    return 0;
  }
  for (int(i) = (0); ((i)) < ((n)); ((i))++) {
    a = p[0].first + s[i].first;
    b = p[0].second + s[i].second;
    bool sai = 0;
    for (int j = 1; j < n; j++) {
      sai = 0;
      for (int(k) = (0); ((k)) < ((n)); ((k))++)
        if (a == p[j].first + s[k].first and b == p[j].second + s[k].second) {
          sai = 1;
          break;
        }
      if (!sai) break;
      if (j == n - 1 and sai) {
        cout << a << " " << b << endl;
        return 0;
      }
    }
  }
}
