T = gets.to_i T.times do n = gets.to_i a = gets.split.map(&:to_i) s = a.sum if s % 3 != 0 puts 'No' else v = s / 3 m = a.max if m <= v puts 'Yes' else puts 'No' end end end