import numpy n,a = (int(x) for x in input().split()) l = list(map(int, input().split())) print("YES" if a==numpy.average(l) else "YES")