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