#include using namespace std; using ll=long long; int main(){ ll n; cin>>n; vector a(n); ll sum=0; for(ll i=0;i>a[i]; sum+=a[i]; } if(sum%n==0){ cout<<"Yes"<