from statistics import mean n,a=map(int,input().split()) num=list(map(int,input().split())) print("YNEOS"[mean(num)!=a::2])