#include<bits/stdc++.h>
using namespace std;
#define ll  long long
#define endl '\n'
#define FASTINOUT ios_base::sync_with_stdio(false);cin.tie(NULL);cout.tie(NULL);
const ll mod = 1000000007;
const double PI = 3.141592653589793238463;
const int N=4e5+100;
int a[4];
int main()
{
    FASTINOUT;
    int x;
    cin>>x;
    int y[x];
    for (int i=0;i<x;i++){
        cin>>y[i];
        a[y[i]%4]++;
    }
    cout<<(y[0]>=y[1]+y[3]-(y[2]==0))?"Yes":"No");
    return 0;
}
