#include <bits/stdc++.h>
using namespace std;
signed main() {
  int D, N, M, O, P, count = 0, count2 = 100000007, count3 = 0, stack = 0;
  string S, T;
  double l, s;
  cin >> N;
  vector<int> a(N);
  for (int i = 0; i < N; i++) {
    cin >> a[i];
    count += a[i];
  }
  if (count % N == 0)
    cout << "Yes" << endl;
  else
    cout << "No" << endl;
}
