#include <bits/stdc++.h>
#define FASTIO cin.tie(0), cout.tie(0), ios::sync_with_stdio(0)
using namespace std;
using ll = long long;
using ld = long double;
using ull = unsigned long long;
int n, u, r, d, l;

bool good(int x) {
	return 0 <= x && x <= n - 2;
}

int main() {
	FASTIO;
	int q;
	cin >> q;
	while (q--) {
		cin >> n >> u >> r >> d >> l;
		bool can = false;
		for (int ul : {0, 1}) {
			u -= ul;
			l -= ul;
			for (int ur : {0, 1}) {
				u -= ur;
				r -= ur;
				for (int dl : {0, 1}) {
					d -= dl;
					l -= dl;
					for (int dr : {0, 1}) {
						d -= dr;
						r -= dr;
						if (good(u) && good(r) && good(l) && good(d)) 
							can = true;
						d += dr;
						r += dr;
					}
					d += dl;
					l += dl;
				}
				u += ur;
				r += ur;
			}
			u += ul;
			l += ul;
		}
		if (can)
			cout << "YES\n";
		else
			cout << "NO\n";
	}
	return 0;
}
