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