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