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

long long int N, a[4];

int main(){
    scanf("%lld", &N);
    for(int i = 0; i < N; ++i){
        scanf("%lld", a + 3);
        ++a[min(2, __builtin_ctzll(a[3]))];
    }
    puts(a[0] + !!a[1] <= a[2] + 1 ? "Yes" : "No");
    return 0;
}