#include using namespace std; int main(){ ios::sync_with_stdio(false); cin.tie(nullptr); int test_case; cin>>test_case; while (test_case--){ int N; cin>>N; vectorA(N); for(int i=0;i>A[i]; long long sum=accumulate(A.begin(),A.end(),0ll); sort(A.begin(),A.end(),greater{}); if(sum%3==0&&A[0]<=sum-A[0]-A[1]){ cout<<"Yes\n"; }else{ cout<<"No\n"; } } }