#include using namespace std; using G=vector>; typedef long long ll; #define rep(i,l,r) for(int i=(l);i<(r);++i) int main(){ int n; cin>>n; vector v; int cnt=0; rep(i,0,n){ int a; cin>>a; v.emplace_back(a); cnt+=a; } cnt=(cnt+n-1)/n; int ans=0; rep(i,0,n){ ans+=(v[i]-cnt); } if(ans==0) cout<<"Yes"<