N = int(input())
A = list(map(int, input().split()))

need = N // 2
ctr_4 = 0
ctr_2 = 0

for a in A:
	if a % 4 == 0:
		ctr_4 += 1
	elif a % 2 == 0:
		ctr_2 += 1
		
if N % 2 == 0:
	ctr_2 += 2
		
# print(ctr_4, ctr_2)

if ctr_2 // 3 + ctr_4 >= need:
	print("Yes")
else:
	print("No")