#include <bits/stdc++.h>
using namespace std;
const long long MAX = 1e6 + 100;
const long long mod = 1e9 + 7;
const long long inf = 1e18 + 12;
vector<long long> arr(MAX);
map<long long, long long> mm;
int main() {
  ios_base::sync_with_stdio(false);
  cout.tie(NULL);
  cout.tie(NULL);
  ;
  long long tt = 1;
  while (tt--) {
    long long n;
    cin >> n;
    long long a[2][n], b[2][n];
    for (long long i = 0; i < n; i++) {
      cin >> a[0][i] >> a[1][i];
    }
    vector<long long> v1, v2;
    map<long long, long long> m1, m2;
    for (long long i = 0; i < n; i++) {
      cin >> b[0][i] >> b[1][i];
      v1.push_back(a[0][0] + b[0][i]);
      v2.push_back(a[1][0] + b[1][i]);
      m1[b[0][i]] = 1;
      m2[b[1][i]] = 1;
    }
    for (auto x : v1) {
      long long l = 0;
      for (long long i = 0; i < n; i++) {
        if (m1[x - a[0][i]] != 1) {
          l = 1;
          break;
        }
      }
      if (l == 0) {
        cout << x << " ";
        break;
      }
    }
    for (auto x : v2) {
      long long l = 0;
      for (long long i = 0; i < n; i++) {
        if (m2[x - a[1][i]] != 1) {
          l = 1;
          break;
        }
      }
      if (l == 0) {
        cout << x << " ";
        break;
      }
    }
  }
}
