n,a=map(int,input().split()) x=list(map(int,input().split())) print('YES' if sum(x)/len(x)==a else 'NO')