import math

num = int(input())
value = input().split()
value = [int(x) for x in value]

res = 0
two = 0
for i in value:
	if i % 4 == 0:
		res += 1
	elif i == 2:
		two += 1
print("Yes" if res+math.floor(two/2) >= math.floor(len(value)/2) else "No")