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