N,a =map(int,input().split()) lsx = map(int,input().split()) ave = sum(lsx)/N print('YES' if a == ave else 'NO')