N = int(input()) A = [int(x)for x in input().split()] print('Yes' if sum(A)/N%1==0 else 'No')