func_code_string: #include <bits/stdc++.h>   using namespace std;   int main() {     int n;     cin >> n;     int a[n * 2], b[n * 2];     for (int i = 0; i < (n); ++i) {       cin >> a[i] >> b[i];       a[i + n] = a[i];       b[i + n] = b[i];     }     int flag = 1;     if (n % 2 == 1) flag = 0;     for (int i = 0; i < (n); ++i) {       int x = a[i + 1] - a[i];       int y = b[i + 1] - b[i];       if (a[i + n / 2 + 1] - a[i + n / 2] != -x) flag = 0;       if (b[i + n / 2 + 1] - b[i + n / 2] != -y) flag = 0;     }     if (flag) {       puts( YES );     } else {       puts( NO );     };     return 0;   }   