#include<bits/stdc++.h>

using namespace std;

int main() {
    ios::sync_with_stdio(0);
    cin.tie(0);

    int m;
    cin >> m;

    while (m) {
        int n, u, r, d, l, uu, rr, ll, dd;
        bool s1, s2, s3, s4 , ans = false;
        cin >> n >> u >> r >> d >> l;

        for (int i = 0; i < 2; ++i) {
            for (int j = 0; j < 2; ++j) {
                for (int k = 0; k < 2; ++k) {
                    for (int o = 0; o < 2; ++o) {
                        s1 = i ; s2 = j ; s3 = k ; s4 = o ;
                        uu = u ; ll = l ; dd = d ; rr = r ;
                        if (s1){
                            uu-- ; ll-- ;
                            if (uu < 0 || ll < 0)
                                continue;
                        }
                        if (s2){
                            uu-- ; rr-- ;
                            if (uu < 0 || rr < 0)
                                continue;
                        }
                        if (s3){
                            dd-- ; ll-- ;
                            if (dd < 0 || ll < 0)
                                continue;
                        }
                        if (s4){
                            dd-- ; rr-- ;
                            if (dd < 0 || rr < 0)
                                continue;
                        }
                        if (n - rr >= 2 && n - uu >= 2 && n - ll >= 2 && n - dd >= 2){
                            ans = true ;
                            i = 2 ; j = 2 ; k = 2 ; o = 2 ;
                        }
                    }
                }
            }
        }
        if (ans == true)
            cout << "YES" <<endl ;
        else
            cout << "NO" << endl ;
        m--;
    }
    return 0;
}
