#include <bits/stdc++.h>
using namespace std;
int main(void) {
  int n, a, x = 0;
  cin >> n;
  int m = n;
  while (n--) {
    cin >> a;
    x += a;
  }
  if (x % m == 0)
    cout << "Yes" << endl;
  else
    cout << "No" << endl;
}
