#include <bits/stdc++.h>
#define ll long long

using namespace std;

void solve(){
    ll n, i;
    cin >> n;
    ll u, r, d, l;
    ll u1=0, r1=0, d1=0, l1=0;
    cin >> u >> r >> d >> l;
    if(u==n) r1++,l1++;
    if(d==n) r1++,l1++;
    if(r==n) u1++,d1++;
    if(l==n) u1++,d1++;

    if(u==n-1){
        if(r1<r) r1++;
        else l1++;
    }
    if(d==n-1){
        if(r1<r) r1++;
        else l1++;
    }
    if(r==n-1){
        if(u1<u) u1++;
        else d1++;
    }
    if(l==n-1){
        if(u1<u) u1++;
        else d1++;
    }
    if(u>=u1 and r>=r1 and l>=l1 and d>=d1) cout << "YES\n";
    else cout << "NO\n";
}
int main(){
    ios_base::sync_with_stdio(false); cin.tie(NULL);
    ll t;
    cin >> t;
    while(t--) solve();
}

  	 	  		 			 			     							 	