using System;
using System.Text;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Threading.Tasks;
using System.IO;

namespace ConsoleTest
{
    class Program
    {
        static void Main(string[] args)
        {
            var sw = new StreamWriter(Console.OpenStandardOutput()) { AutoFlush = false };
            Console.SetOut(sw);

            int N = int.Parse(Console.ReadLine());
            var a = Console.ReadLine().Split().Select(int.Parse).ToArray();
            int a4 = 0;
            int a2 = 0;
            for(var i = 0; i < N; i++)
            {
                if (a[i] % 4 == 0)
                {
                    a4++;

                }
                else if (a[i] % 2 == 0)
                {
                    a2++;
                }
            }
            string ans = "No";
            if (a4 * 3 >= a.Length || (a4 * 3 + a2 >= a.Length && a2 >= 2))
            {
                ans = "Yes";
            }
            Console.WriteLine(ans);



            Console.Out.Flush();
        }
    }
}