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