n=map(int, raw_input().split()) x=map(int, raw_input().split()) ave=float(sum(x))/n[0] if ave==float(n[1]): print 'YES' else: print 'NO'