n,a,*x=map(int,open(0).read().split()) print('YNEOS'[sum(x)/n!=a::2])