N=int(input())
A=list(map(int,input().split()))
s=sum(A)

if s%N!=0:
    print('No')
else:
    print('Yes')