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

class Program
{
	static void Main()
	{
		var n = int.Parse(Console.ReadLine());
		var a = Array.ConvertAll(Console.ReadLine().Split(new[] { ' ' }), number => int.Parse(number));

		var fourCount = a.Count(num => num % 4 == 0);
		var twoCount = a.Count(num => num % 2 == 0);
		var oneCount = a.Count(num => num % 1 == 0);

		if (fourCount > 0) {
			var needs = a.Length / 2;
			needs -= twoCount / 2;

			Console.WriteLine(fourCount >= needs ? "YES" : "NO");
		} else if (twoCount == a.Length) {
			//4の倍数がなくても、数値が全部2ならOK
			Console.WriteLine("YES");
		} else {
			//ダメ
			Console.WriteLine("NO");
		}


		//デバッグ実行での確認用。そのまま提出しても問題なし
		Console.ReadKey();
	}
}
