N = int(input())						# 5
a = [int(i) for i in input().split()]	# 1 2 3 4 5 ...

f=0
t=0
for i in range(N):
	if a[i]%4==0:
		f += 1
	elif a[i]%2==0:
		t += 1

n=0
n+=f*3
if(t>=2):n+=t

if n >= N:
	print("Yes")
else:
	print("No")


