N=input()
#print N
a=map(int, raw_input().split())
#print a

cnt4=0
cnt2=0
kisuu=0
for i in range(len(a)):
	#print a[i]
	if a[i]%4==0:
		cnt4+=1
	elif a[i]%4!=0 and a[i]%2==0:
		cnt2+=1
	elif a[i]%2==1:
		kisuu+=1


#print cnt4
#print cnt2
#print kisuu

if cnt4==kisuu:
	print 'Yes'
elif cnt4+1==kisuu and cnt2==0:
	print 'Yes'
else:
	print 'No'

