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