#include #include #include #include #include #include #include #include #include #include #include #include using namespace std; typedef long long ll; const int mod=1e9+7; int main(){ static int t,n,a[200000]; cin>>t; while(cin>>n){ for(int i=0;i>a[i]; ll sum=accumulate(a,a+n,0ll); bool f=sum%3==0; for(int i=0;isum/3) f=0; cout<<(f?"Yes":"No")<