#include <bits/stdc++.h>

using namespace std;

typedef long long ll;
typedef unsigned long long ull;

#define _abs(x)((x) < 0 ? (x) * -1 : (x))
#define _max(x, y)(max(0, max((x), (y))))
#define _min(x, y)(max(0, min((x), (y))))

int main()
{
    //freopen("in.txt", "r", stdin);
    //freopen("out.txt", "w", stdout);
    //freopen("debug.txt", "w", stderr);

    cin.tie(0);
    ios::sync_with_stdio(false);

    long n;

    cin >> n;

    ll a;
    ll m = 0;
    ll k = 0;

    long i;

    for (i = 0; i < n; i++) {
        cin >> a;

        if (a % 4 == 0) m++;
        if (a == 2) k++;
    }

    if (m <= k) m += (k / 2);

    if (len <= m) cout << "Yes" << endl;
    else cout << "No" << endl;

    return 0;
}
