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