func_code_string: #include <bits/stdc++.h>   using namespace std;   const long long N = 100007;   long long n, x[N], y[N];   pair<long long, long long> mid(long long a, long long b) {     long long xx = (x[a] + x[b]) / 2;     long long yy = (y[a] + y[b]) / 2;     return {xx, yy};   }   int32_t main() {     ios_base::sync_with_stdio(false);     cin.tie(NULL);     cin >> n;     for (long long i = 0; i < n; ++i) {       cin >> x[i] >> y[i];       x[i] *= 2;       y[i] *= 2;     }     if (n % 2) {       cout <<  NO n ;       return 0;     }     pair<long long, long long> midpoint = mid(0, n / 2);     for (long long i = 1; i < n / 2; ++i) {       pair<long long, long long> cur = mid(i, i + n / 2);       if (cur != midpoint) {         cout <<  NO n ;         return 0;       }     }     cout <<  YES n ;     return 0;   }   