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