#include using namespace std; using ll =long long; #define all(v) v.begin(),v.end() #define rep(i,a,b) for(int i=a;i=b;i--) ll INF=2e18; int main() { ios::sync_with_stdio(false); cin.tie(0); ll N;cin>>N; vector A(N); ll s=0; for(ll i=0;i>A[i]; s+=A[i]; } if(s%N==0) cout<<"Yes"<