//英语恐成最大阻碍
#include<bits/stdc++.h>
using namespace std;
#define endl "\n"
#define int long long
const int maxl = 1e5 + 7;
const int inf = 0x3f3f3f3f;
bool check(string s)
{

}
signed main()
{
    ios::sync_with_stdio(false);
    cin.tie(nullptr);
    cout.tie(nullptr);
    int t;
    cin>>t;
    while(t--)
    {
        int n,u,r,d,l;
        cin>>n>>u>>r>>d>>l;
        int num[4];
        int ke=0;
        for(int i=0;i<16;i++)
        {
            for(int k=0;k<4;k++)
                num[k]=((i>>k)&1);
            int uu,rr,dd,ll;
            uu=u-num[0]-num[3];
            rr=r-num[0]-num[1];
            dd=d-num[1]-num[2];
            ll=l-num[2]-num[3];
            if(uu>=0&&rr>=0&&dd>=0&&ll>=0&&uu<=n-2&&rr<=n-2&&dd<=n-2&&ll<=n-2)
                ke=1;
        }
        if(ke)
            cout<<"YES"<<endl;
        else
            cout<<"NO"<<endl;
    }
}
