#include <iostream>

using namespace std;

bool is4(int i)
{
    if(i % 4 == 0)
        return true;
    else
        return false;
}
int main()
{
    int n,cnt1 = 0,cnt2 = 0;
    cin >> n;

    for(int i = 0;i < n;i++)
    {
        int temp;
        cin >> temp;
        if(is4(temp))
            cnt2++;
        else if(temp == 2)
           cnt1++;
    }
    int x = n/2;
    while(cnt1 > 1)
    {
        cnt2 += cnt1 / 2;
        cnt1 = cnt1 % 2;
    }
    if(cnt2 >= x)
        cout << "Yes";
    else
        cout << "No";
    return 0;
}
