n,a =input(),input() L=[] for i in range(1,n+1): L.append(input()) N_ave = sum(L)/float(n) if N_ave == a: print "YES" else: print "NO"