#include <bits/stdc++.h>
using namespace std;

#define ll int
#define vl vector<long long>
#define fr(i,a,n) for(ll i=a; i<n; i++)
#define all(x) x.begin(), x.end()

int32_t main(){
	ios_base::sync_with_stdio(false);
	cin.tie(NULL);
	cout.tie(NULL);
	ll t; cin>>t;
	while(t--){
		ll n, x=0, z[4];
		cin>>n;
		for(ll i=0; i<4; i++) cin>>z[i];
		for(ll i=0; i<=15; i++){
			ll a=0, b=0, c=0, d=0;
			if(i&1) a++;
			if(i&2) b++;
			if(i&4) c++;
			if(i&8) d++;
			if(z[0]-a-b<=n-2 && z[0]>=a+b) x++;
			if(z[1]-c-b<=n-2 && z[1]>=c+b) x++;
			if(z[2]-c-d<=n-2 && z[2]>=c+d) x++;
			if(z[3]-a-d<=n-2 && z[3]>=a+d) x++;
			if(x==4) break;
			else x=0;
		}
		if(x==4) cout<<"Yes\n";
		else cout<<"No\n";
	}
	}