N, A = gets.split.map(&:to_i) X = gets.split.map(&:to_i) if Rational(X.sum, N) == A puts 'YES' else puts 'NO' end