# coding: utf-8 a = (list(map(lambda n:int(n), input().split(' ')))) b = (list(map(lambda n:int(n), input().split(' ')))) sum = 0 for i in b: sum += i if sum / a[0] == a[1]: print('YES') else: print('NO')