n, a = map(int, input().split())
b = [int(_) for _ in input().split()]

if sum(b)/len(b) == a:
    print('YES')
else:
    print('NO')