#include <bits/stdc++.h>
using namespace std;
const int N = 1e3 + 9;
const int MOD = 998244353;
const long long oo = 8e18 + 9;
int n;
pair<int, int> a[N], x[N];
int main() {
  ios::sync_with_stdio(0);
  cin.tie(0);
  ;
  cin >> n;
  for (int i = 1; i <= n; i++) cin >> a[i].first >> a[i].second;
  for (int i = 1; i <= n; i++) cin >> x[i].first >> x[i].second;
  sort(a + 1, a + 1 + n);
  sort(x + 1, x + 1 + n);
  cout << a[1].first + x[n].first << ' ' << a[1].second + x[n].second << '\n';
}
