#include <bits/stdc++.h>
using namespace std;
struct point : pair<int, int> {
  point() { cin >> first >> second; }
};
struct sum : pair<long long, long long> {
  sum(long long a = 0, long long b = 0) { first = a, second = b; }
  friend sum operator+(const sum& a, const point& p) {
    return sum(a.first + p.first, a.second + p.second);
  }
  friend sum operator+(const sum& a, const sum& p) {
    return sum(a.first + p.first, a.second + p.second);
  }
  friend sum operator/(const sum& a, int n) {
    return sum(a.first / n, a.second / n);
  }
  friend ostream& operator<<(ostream& out, const sum& p) {
    return out << p.first << ' ' << p.second;
  }
};
int main() {
  ios_base::sync_with_stdio(false), cin.tie(nullptr), cout.tie(nullptr);
  int n;
  cin >> n;
  vector<point> x(n << 1);
  cout << accumulate(x.begin(), x.end(), sum()) / n;
}
