n=int(input()) a=list(map(int,input().split())) print('Yes' if sum(a)%n==0 else 'No')