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