#include #include #include #include #include using namespace std; int main () { auto fin = ifstream ("input.txt"); auto fout = ofstream ("output.txt"); int n; fin >> n; vector > points (n); for (auto &[x, y] : points) // C++17 fin >> x >> y; pair center = {0, 0}; for (auto &[x, y] : points) { // C++17 center.first += x; center.second += y; } fout << setprecision (10) << fixed; fout << center.first / n << " " << center.second / n << endl; return 0; }