local mmi, mma = math.min, math.max local q = io.read("*n") for iq = 1, q do local n = io.read("*n") local max, sum = 0, 0 for i = 1, n do local a = io.read("*n") max = mma(a, max) sum = sum + a end if sum % 3 == 0 and max * 3 <= sum then print("Yes") else print("No") end end