using System.Collections.Generic;
using System.Linq;
using System;
class Program
{
	static void Main()
	{
		var countStr = Console.ReadLine();
        int count = int.Parse(countStr);

        var line = Console.ReadLine();
        string[] array = line.Split(' ');

        int fourM = 0;
        int twoM = 0;
        int notM = 0;

        for (int i = 0; i < count; i++){
            int num = int.Parse(array[i]);
            if(num % 4 == 0){
                fourM++;
            }else if(num % 2 == 0){
                twoM++;
            }else{
                notM++;
            }
        }

        fourM += twoM / 2;
        notM += twoM % 2;

        Console.WriteLine(fourM);
        Console.WriteLine(twoM);
        Console.WriteLine(notM);

        if (fourM >= notM - 1){
            Console.WriteLine("Yes");
        }else{
            Console.WriteLine("No");
        }
    }
}