#include <bits/stdc++.h>
using namespace std;
const double EPS = 1e-9;
template <class T, class C>
void chmax(T& a, C b) {
  a > b ?: a = b;
}
template <class T, class C>
void chmin(T& a, C b) {
  a < b ?: a = b;
}
int main() {
  cin.tie(0);
  ios::sync_with_stdio(false);
  long long n, sum = 0, sum1 = 0, sum2 = 0, ans = 0;
  cin >> n;
  long long a[n];
  for (int i = 0; i < n; i++) {
    cin >> a[i];
    sum += a[i];
    int b = a[0];
    if (a[i] == 0) {
      ans++;
    }
  }
  if (sum % 2 == 0 && sum % n == 0 || sum / n == 0) {
    cout << "Yes" << endl;
  } else {
    cout << "No" << endl;
  }
}
