n, ave_manu = map(lambda x: int(x), input().split()) l = [int(i) for i in input().split()] print("YES" if (sum(l) / n ) == ave_manu else "NO")