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

namespace ConsoleApplication83
{
    class Program
    {
        static void Main(string[] args)
        {
            int a = int.Parse(Console.ReadLine());
            int[] b = new int[a];
            b = Console.ReadLine().Split().Select(int.Parse).ToArray();
            int c = (a - 1)*2;
            int multi=0;
            for (int d = 0; d < a; d++)
            {
                if (b[d] % 64 == 0)
                    multi += 4;
                else if (b[d] % 32 == 0)
                    multi += 4;
                else if (b[d] % 16 == 0)
                    multi += 4;
                else if (b[d] % 8 == 0)
                    multi += 4;
                else if (b[d] % 4 == 0)
                    multi += 4;
                else if (b[d] % 2 == 0)
                    multi += 2;
            }
            if (c > multi)
                Console.WriteLine("No");
            else Console.WriteLine("Yes");
        }
    }
}
