#include<bits/stdc++.h>
using namespace std;
using ll = long long;
#define MM = 1000000000;
#define mod = MM + 7;
#define INF (ll)1e18
#define pi acos(-1.0)
#define MAX 100005
#define NIL -1
int main(){
    ll n; cin >> n;
    ll a[n];
    vector<ll> v1, v2, v4;
    string ans;
    for(ll i = 0; i < n; i++){
        cin >> a[i];
        if(a[i]%4 == 0) v4.push_back(a[i]);
        else if(a[i]%2 == 0) v2.push_back(a[i]);
        else v4.push_back(a[i]);
    }
    if(b1.size() <= b4.size()){
        ans = "Yes";
    } else{
        ans = "No";
    }
    cout << ans << endl;
}