// Avijeet Nayak
// © avijeet_03

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

#define FastIO ios::sync_with_stdio(0); cin.tie(0); cout.tie(0);
#define int long long
#define mod 1000000007

signed main() {
	FastIO;

	int tc;
	cin >> tc;
	while (tc--)
	{
		int n, u, r, d, l;
		cin >> n >> u >> r >> d >> l;
		int res = max({u, r, d, l});
		if (res < n - 1) {
			cout << "YES\n";
			continue;
		}
		bool ok = false;
		int arr[4] = {r, d, l, u};
		for (int mask = 0; mask < (1 << 4); mask++)
		{
			bool check = true;
			int c[4] = {0, 0, 0, 0};
			for (int i = 0; i < 4; i++)
			{
				if (arr[i] <= n - 2)
					continue;
				if (arr[i] == n) {
					c[(i + 1) % 4]++;
					c[(i + 3) % 4]++;
				}
				else {
					if (mask & (1 << i))
						c[(i + 1) % 4]++;
					else
						c[(i + 3) % 4]++;
				}
			}
			for (int i = 0; i < 4; i++)
				if (arr[i] < c[i])
					check = false;

			if (check) {
				ok = true;
				break;
			}
		}

		if (ok)
			cout << "YES\n";
		else
			cout << "NO\n";
	}

	return 0;
}