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