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

namespace AtCoder
{
    class Program
    {
        static void Main(string[] args)
        {
            //[summary]C - 4-adjacent
            int n = int.Parse(Console.ReadLine());
            var a = ReadLine();

            var classifications = new List<List<int>>();

            for(int i = 0; i < 5; i++)
            {
                var c = new List<int>();
                classifications.Add(c);
            }

            //数列の要素を 4の倍数,2の倍数,奇数 に分類
            foreach(var ai in a)
            {
                if (ai % 4 == 0)
                {
                    classifications[4].Add(ai);
                }
                else if (ai % 2 == 0)
                {
                    classifications[2].Add(ai);
                }
                else
                {
                    classifications[1].Add(ai);
                }
            }

            if (IsGoal(classifications))
            {
                Console.WriteLine("Yes");
            }
            else
            {
                Console.WriteLine("No");
            }
        }

        static bool IsGoal(List<List<int>> c)
        {
            //数列に1が存在しなければNG
            if (!c[1].Contains(1))
            {
                return false;
            }
            else
            {
                if (c[4].Count >= c[1].Count)
                {
                    return true;
                }
                else if(c[4].Count +1 == c[1].Count)
                {
                    if (c[2].Count == 0)
                    {
                        return true;
                    }
                    else
                    {
                        return false;
                    }
                }
                else
                {
                    return false;
                }
            }
        }

        static List<int> ReadLine()
        {
            var line = Console.ReadLine();
            var array = line.Split(' ');

            return array.Select(x => int.Parse(x)).ToList();
        }
    }
}
