#include <bits/stdc++.h>
const long long int MOD = 1e9 + 7;
using namespace std;
int32_t main(void) {
  ios::sync_with_stdio(0);
  cin.tie(0);
  long long int n, a, b;
  cin >> n;
  vector<pair<long long int, long long int>> o(n);
  map<pair<long long int, long long int>, long long int> ans;
  for (long long int i = 0; i < n; i++) cin >> o[i].first >> o[i].second;
  for (long long int i = 0; i < n; i++) {
    cin >> a >> b;
    for (long long int j = 0; j < n; j++) {
      ans[{o[j].first + a, o[j].second + b}]++;
    }
  }
  for (auto it : ans)
    if (it.second == n) {
      cout << it.first.first << " " << it.first.second;
      return 0;
    }
}
