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