i = input().rstrip().split(" ") #0は個数 1は平均 k = input().rstrip().split(" ") #全部数 total = 0 #合計の設定 for a in k: #取得して合計へ b = int(a) total += b c = total / int(i[0]) #平均 if c == int(i[1]): #平均の一致 print("YES") else: print("NO")