#include <bits/stdc++.h>
#define all(s) s.begin(),s.end()
#define pb push_back
#define fastio ios_base::sync_with_stdio(0);cin.tie(0);cout.tie(0)
using namespace std;
typedef long long ll;

int main() {
	int t;
	cin >> t;
	while(t--){
		int n, l, d, u, r;
		cin >> n >> u >> r >> d >> l;
		n-=2;
		bool can = false;
		for (int mask = 0; mask < 16; mask++){
			bool flag = true;
			int nu = u - (mask&1) - ((mask>>1)&1);
			int nd = d - ((mask>>2)&1) - ((mask>>3)&1);
			int nl = l - (mask&1) - ((mask>>2)&1);
			int nr = r - ((mask>>1)&1) - ((mask>>3)&1);
			if(nu > n || nd > n || nl > n || nr > n) flag = false;
			if(nu < 0 || nd < 0 || nl < 0 || nr < 0) flag = false;
			can |= flag;
		}
		cout << (can ? "YES\n":"NO\n");
	}
	return 0;
}
  			      		 	      	    		 		