from statistics import mean
n, a = list(map(int, input().split()))
print(['NO', 'YES'][mean(list(map(int, input().split()))) == a])