n = int(input())
a = tuple(map(int, input().split(" ")))

than_2, than_1, than_0 = 0, 0, 0 
for a_i in a:
	if a_i%4 == 0:
		than_2 += 1
	elif a_i%2 == 0:
		than_1 += 1
	else:
		than_0 += 1

if n <= than_2*2 + than_1:
	print("Yes")
else:
	print("No")