#include <bits/stdc++.h>
#define ll long long int
#define ld long double
#define NMAX 1009
using namespace std;
ll mask;
ll u,d,r,l;
ll n;
int main()
{
    ios_base::sync_with_stdio(false);
    cin.tie(NULL);
    ll t;
    cin>>t;
    while(t--)
    {
    cin>>n>>u>>r>>d>>l;
    bool ok=0;
    for(mask=0;mask<16;mask++)
        {
            ll cu=u;
        ll cd=d;
        ll cl=l;
        ll cr=r;
       if(mask & 1)
           {cu--;cl--;}
        if(mask & 2)
           {cu--;cr--;}
         
        if(mask & 4)
           {cl--;cd--;}
         if(mask & 8)
           {cd--;cr--;}
        if(cd>=0 && cd<=n-2 && cu>=0 && cu<=n-2 && cl>=0 && cl<=n-2 && cr>=0 && cr<=n-2)
           {ok=1;break;}   
             
        }
     if(!ok)
     cout<<"NO\n";
     else
     cout<<"YES\n";   
    }


    return 0;
}
///limitele si tipul de date!!
