#include using namespace std; long long N, S; long long A[1 << 18]; int main() { cin >> N; for (int i = 1; i <= N; i++) cin >> A[i]; for (int i = 1; i <= N; i++) S += A[i]; if (S % N == 0LL) cout << "Yes" << endl; else cout << "No" << endl; return 0; }