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