using System;
using System.Linq;
using System.Collections.Generic;
using System.Numerics;
using static System.Console;

class Program {
    internal static void Main(string[] args) {
        var N = int.Parse(ReadLine());

        var a = ReadLine().Split(' ').Select(s => int.Parse(s)).ToArray();

        var cnt = a.Count(i => i % 4 == 0);

        var hoge = 2;
        if (N <= 3) { hoge = 1; }
        if (cnt < hoge) {
               WriteLine("No");
            return;
        }

        if (N >= 6) {
            var even = a.Count(i => i % 2 == 0 && i % 4 != 0);
            if (even == 1) { even = 0; }

            var piyo = (N - 4 - even);
            if (piyo == 1) {
                piyo = 2;
            }

            if (piyo / 2 > cnt - 2) {
                WriteLine("No");
                return;
            }
        }

        WriteLine("Yes");
    }
}