#include #include using namespace std; struct Point { double x, y; Point () {x = y = 0;} Point (double x_, double y_) : x (x_), y (y_) {} Point operator + (Point const & other) const {return Point (x + other.x, y + other.y);} Point operator * (double c) const {return Point (x * c, y * c);} }; int main () { int n; cin >> n; vector p (n); auto center = Point (0, 0); for (int i = 0; i < n; i++) { cin >> p[i].x >> p[i].y; center = center + p[i]; } center = center * (1.0 / n); cout << center.x << " " << center.y << endl; return 0; }