#include <bits/stdc++.h>
using namespace std;
#define ll  long long
//#define int ll
#define vi vector<int>
#define pii pair<int,int>
#define piii pair<int, pii>
#define pb push_back
#define fs first
#define sc second
//#define ONLINE_JUDGE
#define endl "\n"
#define pow2(i) (1<<(i))  
#define d0(x) cout<<x<<" "
#define d1(x) cout<<(x)<<endl
#define d2(x,y) cout<<(x)<<" "<<(y)<<endl
#define d3(x,y,z) cout<<x<<" "<<y<<" "<<z<<endl
#define d4(x,y,z,w) cout<<x<<" "<<y<<" "<<z<<" "<<w<<endl
#define d5(x,y,z,w,s) cout<<x<<" "<<y<<" "<<z<<" "<<w<<" "<<s<<endl
#define fifo ios_base::sync_with_stdio(0);cin.tie(0);cout.tie(0);
#define precise(x) cout<<fixed<<setprecision(x)
#define all(v) (v).begin(),(v).end()
const int mod = 1e9+7;

 
int n,u,r,d,l;

bool f(int x)
{
	return (x>=0 && x<=n-2);
}
void solve()
{
	
	cin>>n>>u>>r>>d>>l;

	for(int m=0;m<16;m++)
	{
		int U,R,D,L;
		U=u;R=r;D=d;L=l;
		if((m&1)>0)U--,L--;
		if((m&2)>0)U--,R--;
		if((m&4)>0)D--,L--;
		if((m&8)>0)D--,R--;

		if(f(U)&&f(D)&&f(R)&&f(L))
		{
			d1("YES");return;
		}
	}

	d1("NO");
}
 
 
signed main()
{
    #ifndef ONLINE_JUDGE
    freopen("input.txt", "r", stdin);
    //freopen("output.txt", "w", stdout);
    #endif
 
    fifo
    int t=1;
    cin>>t;

    for(ll tc=1;tc<=t;++tc)
    {
        solve();
    }
}