N=int(input()) A=list(map(int,input().split())) A_sum=sum(A) print("Yes" if A_sum%N==0 else "No")