#include<iostream>
#include<cstdio>
#include<vector>
#include<algorithm>
#include<map>
#include<set>

#define FOR(i, a, n) for(int i = (int)(a); i < (int)(n); ++i)
#define REP(i, n) FOR(i, 0, n)
 
#define sPRINT(str) printf(#str "\n")
#define yOUT sPRINT(Yes)
#define nOUT sPRINT(No)
#define YOUT sPRINT(YES)
#define NOUT sPRINT(NO)
 
#define pb(a) push_back(a)
#define all(x) (x).begin(),(x).end()
 
using namespace std;

int main(void)
{   
    int n, cnt=0, cnt2=0;
    cin >> n;
    vector<int> a(n);
    REP(i, n){
        cin >> a[i];
        if(a[i] % 4 == 0){
            cnt1++;
        }
        else if(a[i] % 2 == 0){
            cnt2++;
        }
    }

    cnt1 += cnt2/2;

    if(cnt1 >= n/3.0){
        yOUT;
    }
    else{
        nOUT;
    }
    
}
