#include<bits/stdc++.h>
using namespace std;
typedef long long int ll;
#define fastio ios_base::sync_with_stdio(false);cin.tie(NULL);cout.tie(NULL);
#define take(n,z); for(ll i=0;i<n;i++){cin>>z[i];}
#define out(n,z); for(ll i=0;i<n;i++){cout<<z[i]<<' ';}
#define test ll t;cin>>t;while(t--)
#define lp(v,a,b) for(ll v=a;v<b;v++)
typedef vector<int> v;
int check(ll *arr,ll n)
{       ll i=0;
        for( i=0;i<4;i++)
        {
            if(arr[i]>(n-2)||arr[i]<0)return 0;
        }
        if(i==4)return 1;
}
int main()
{
    test
    {
        ll n;
        cin>>n;
        ll arr[4],aux[4];
        take(4,arr);
        for(ll i=0;i<4;i++){aux[i]=arr[i];}
          ll x =1;
          ll p=0;
        for(ll i=0;i<16;i++)
        {

            if(((x)&i)>0){arr[0]--;arr[3]--;}

            if(((x<<1)&i)>0){arr[0]--;arr[1]--;}

            if(((x<<2)&i)>0){arr[1]--;arr[2]--;}

            if(((x<<3)&i)>0){arr[2]--;arr[3]--;}

            p = check(arr,n);

            for(ll j=0;j<4;j++){arr[j]=aux[j];}

            if(p==1){break;}
        }
        if(p==1){cout<<"YES"<<endl;}
        else {cout<<"NO"<<endl;}
    }
}
