#include <iostream>
#include <vector>

using namespace std;

int main()
{
    ios_base::sync_with_stdio(0);
    int n;
    cin >> n;
    vector<int> w(3, 0);
    for (int i = 0; i < n; ++i)
    {
        int x;
        cin >> x;
        int wyk = 0;
        while (x % 2 == 0)
        {
            x /= 2;
            ++wyk;
        }
        wyk = min(wyk, 2);
        ++w[wyk];
    }
    bool db = false;
    if (w[0] != 0)
    {
        //start = 0;
        bool ok = true;
        --w[0];
        int pop = 0;
        for (int i = 1; i < n; ++i)
        {
            if (pop == 0)
            {
                if (w[2] != 0)
                {
                    --w[2];
                    pop = 2;
                }
                else
                    ok = false;
                continue;
            }
            if (pop == 1)
            {
                if (w[1] != 0)
                {
                    --w[1];
                    pop = 1;
                }
                else
                {
                    if (w[2] != 0)
                    {
                        --w[2];
                        pop = 2;
                    }
                    else
                        ok = false;
                }
                continue;
            }
            if (pop == 2)
            {
                if (w[0] != 0)
                {
                    --w[0];
                    pop = 0;
                }
                else
                {
                    if (w[1] != 0)
                    {
                        --w[1];
                        pop = 1;
                    }
                    else
                    {
                        if (w[2] != 0)
                        {
                            --w[2];
                            pop = 2;
                        }
                        else
                            ok = false;
                    }
                }
            }
            continue;
        }
        if (ok)
            db = true;

        //start = 1;
        if (w[1] != 0)
        {
            ok = true;
            --w[1];
            pop = 1;
            for (int i = 1; i < n; ++i)
            {
                if (pop == 0)
                {
                    if (w[2] != 0)
                    {
                        --w[2];
                        pop = 2;
                    }
                    else
                        ok = false;
                    continue;
                }
                if (pop == 1)
                {
                    if (w[1] != 0)
                    {
                        --w[1];
                        pop = 1;
                    }
                    else
                    {
                        if (w[2] != 0)
                        {
                            --w[2];
                            pop = 2;
                        }
                        else
                            ok = false;
                    }
                    continue;
                }
                if (pop == 2)
                {
                    if (w[0] != 0)
                    {
                        --w[0];
                        pop = 0;
                    }
                    else
                    {
                        if (w[1] != 0)
                        {
                            --w[1];
                            pop = 1;
                        }
                        else
                        {
                            if (w[2] != 0)
                            {
                                --w[2];
                                pop = 2;
                            }
                            else
                                ok = false;
                        }
                    }
                }
                continue;
            }
            if (ok)
                db = true;
        }

        //start = 2;
        if (w[2] != 0)
        {
            ok = true;
            --w[2];
            pop = 2;
            for (int i = 1; i < n; ++i)
            {
                if (pop == 0)
                {
                    if (w[2] != 0)
                    {
                        --w[2];
                        pop = 2;
                    }
                    else
                        ok = false;
                    continue;
                }
                if (pop == 1)
                {
                    if (w[1] != 0)
                    {
                        --w[1];
                        pop = 1;
                    }
                    else
                    {
                        if (w[2] != 0)
                        {
                            --w[2];
                            pop = 2;
                        }
                        else
                            ok = false;
                    }
                    continue;
                }
                if (pop == 2)
                {
                    if (w[0] != 0)
                    {
                        --w[0];
                        pop = 0;
                    }
                    else
                    {
                        if (w[1] != 0)
                        {
                            --w[1];
                            pop = 1;
                        }
                        else
                        {
                            if (w[2] != 0)
                            {
                                --w[2];
                                pop = 2;
                            }
                            else
                                ok = false;
                        }
                    }
                }
                continue;
            }
            if (ok)
                db = true;
        }

    }
    else
        db = true;
    if (db)
        cout << "Yes";
    else
        cout << "No";
    return 0;
}


Measured memory_bytes: 256