n,a = (int(i) for i in (input().split())) x = [int(i) for i in input().split()] if a == sum(x)/len(x): print('YES') else: print('NO')