N = gets.to_i
numsStr = gets.split " "
nums = numsStr.map {|str| str.to_i}

double = 0
nums.each do |i|
	if i%4 == 0
		double += 2
	elsif i%2 == 0
		double += 1
	end
end
puts double
if N <= double
	puts "yes"
else
	puts "no"
end
		