#python 3.5.2 n, a = list(map(int, input().split())) print("YES") if a == sum(list(map(int, input().split())))/n else print("NO")