local read = io.read

local n = read("n")

local four_times_count = 0
local two_times_count = 0
for i = 1, n do
	local a_i = read("n")
	if a_i % 4 == 0 then
		four_times_count = four_times_count + 1
	elseif a_i % 2 == 0 then
		two_times_count = two_times_count + 1
	end
end

local sum_count = 0
if two_times_count == n then
	sum_count = n
elseif two_times_count >= 1 then
	sum_count = four_times_count * 3 - 1 + two_times_count
else
	sum_count = four_times_count * 3
end

print((sum_count >= n) and "Yes" or "No")
