n, a = list(map(int, input().split())) x = list(map(int, input().split())) ave = sum(x) / n if a == ave: print("YES") else: print("NO")