#include <bits/stdc++.h>

using namespace std;

int main(int argc, char *argv[]) {
    int N;
    cin >> N;
    int even = 0;
    int four = 0;
    for (int i = 0; i < N; i++) {
        int cur;
        cin >> cur;
        if (cur % 2 == 0 && cur % 4 != 0) even++;
        if (cur % 4 == 0) four++;
    }
  
    int sum = four * 3 + ((cur / 2) * 2);
    cout << ((sum >= N) ? "YES" : "NO") << endl;
    return 0; 
}