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