using System;
using System.Linq;
using System.Collections;
using System.Collections.Generic;
using System.Text;

class Program
{
    static void Main(string[] args)
    {
        // 入力
        var n = long.Parse(Console.ReadLine());
        long[] a = new long[n];

        int c2 = 0;
        int c4 = 0;
        int c = 0;
        for (int i = 0; i < n; i++)
        {
            if (A[i] % 4 == 0) c4++;
            else if (A[i] % 2 == 0) c2++;
            else c++;
        }

        string ans = "";
        if (c4 + 1 == c && n == (c4 + c) )ans ="Yes";
        if (c4 < c) ans = "No";

        Console.WriteLine(ans);
    }
}
