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