N=int(input()) A=[int(i) for i in input().split()] if sum(A)%N==0: print("Yes") else: print("No")