import sys,math input=lambda:sys.stdin.readline().rstrip() N=int(input()) A=list(map(int,input().split())) print(['Yes','No'][sum(A)%N>0])