#include #include #include<math.h> using namespace std; int main() { int N,loop,loopc; cin>>N;

for (loop=0;loop<N;loop++)
{
    long long n,k,d1,d2,s1,s2;
    bool Key=false;
    cin>>n;cin>>k;cin>>d1;cin>>d2;
    s1=k-(2*d1+d2);
    s2=n-k-(2*d2+d1);
    if(s1>=0 and s2>=0 and s1%3==0 and s2%3==0)
        Key=true;
    s1=k-(2*d2+d1);
    s2=n-k-(2*d1+d2);
    if(s1>=0 and s2>=0 and s1%3==0 and s2%3==0)
        Key=true;
    s1=k-(d1+d2);
    s2=n-k-(d1+d2+3*abs(d1-d2))/2;
    if(s1>=0 and s2>=0 and s1%3==0 and s2%3==0)
        Key=true;
    s1=k-(d1+d2+3*abs(d1-d2))/2;
    s2=n-k-(d1+d2);
    if(s1>=0 and s2>=0 and s1%3==0 and s2%3==0)
        Key=true;
    if(Key)
        cout<<'y'<<'e'<<'s'<<endl;
    else
        cout<<'n'<<'o'<<endl;
    
    
}

}