#include <bits/stdc++.h>
using namespace std;
const int MAX_V = 100001;
int main() {
  int n;
  cin >> n;
  double x_m = 0, y_m = 0;
  double x[MAX_V], y[MAX_V];
  for (int i = (int)0; i < (int)n; ++i) {
    cin >> x[i] >> y[i];
    x_m += x[i];
    y_m += y[i];
  }
  x_m /= n;
  y_m /= n;
  if (n % 2 != 0) {
    cout << "No";
    return 0;
  }
  for (int i = (int)0; i < (int)n / 2; ++i) {
    if (x[i] - x_m != -(x[i + n / 2] - x_m) or
        y[i] - y_m != -(y[i + n / 2] - y_m)) {
      cout << "No";
      return 0;
    }
  }
  cout << "Yes";
}
