#include <iostream>
using namespace std;
int main() {
    int N, a, cnt = 0, tmp = 0;
    cin >> N;
    for (int i = 0; i < N; i++) {
        cin >> a;
        if (a % 4 == 0) cnt++;
        else if (a % 2 == 0) tmp++;
        if (tmp == 2) {
            cnt++;
            tmp = 0;
        }
    }
    cout << (N / 2 <= cnt ? "Yes" : "No") << endl;
}