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