N=int(input()) A=list(map(int,input().split())) S=sum(A) if S%N: print('No') else: print('Yes')