#include using namespace std; int main() { int T; cin >> T; for( int i = 0; i < T; i++ ) { int N; cin >> N; long long c = 0, ma = 0; for( int j = 0; j < N; j++ ) { long long A; cin >> A; c += A; ma = max( ma, A ); } string ans = "Yes"; if( c % 3 || ma * 3 > c ) ans = "No"; cout << ans << endl; } }