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