# No.476 正しくない平均
n, a = [int(i) for i in input().split()]
x = [int(i) for i in input().split()]
print('YES' if sum(x) / n == a else 'NO')