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