using System;
using System.Text;
using System.Collections.Generic;
using System.Linq;
class Solve
{
    public static void Swap<T>(ref T a, ref T b)
    {
        T tmp = a;
        a = b;
        b = tmp;
    }

    public static void Main()
    {
        int n = int.Parse(Console.ReadLine());
        int[] a = Console.ReadLine().Split().Select(int.Parse).OrderBy(e=>e).ToArray();
        
        for (int i = 0; i < (n - 1); i++)
        {
            bool flag = false, koukan = false;
            int b = a[i], c = a[i + 1];
            int d = 0;
            int e = 0;
            for (int j = i + 2; j < n; j++)
            {
                d = ((b % 4) * (c % 4)) % 4;
                if (j >= n) break;
                Console.WriteLine($"n:{n},i:{i},j:{j}");
                if (d != 0)
                {
                    c = a[j];
                    koukan = true;
                    e = j;
                }
                else
                {
                    flag = true;
                    break;
                }

            }
            d = ((b % 4) * (c % 4)) % 4;
            if (d == 0)
            {
                flag = true;
            }

            if (!flag)
            {
                Console.WriteLine("No");
                return;
            }
            if (koukan)
                Swap(ref a[i + 1], ref a[e]);
        }
        Console.WriteLine("Yes");
        return;

    }
}