#include <iostream>

using namespace std;

int main()
{
    cout << "n: ";
    int n;
    cin >> n;
    int *a = new int[n];
    cout << "a: ";
    for(int i=0; i<n; i++)
    {
        cin >> a[i];
    }

    int c4=0,c2=0,c1=0;
    for(int i=0; i<n; i++)
    {
        if(a[i]%4 == 0)
            c4++;
        else if(a[i]%2 == 0)
            c2++;
        else
            c1++;
    }
    if(c2 > 0)
        c2 = 1;
    if(c1 == 0)
        cout << "Yes" << endl;
    else if(c4 >= c1-1+c2)
        cout << "Yes" << endl;
    else
        cout << "No" << endl;
    return 0;
}
