#ABC069C
N=int(input())
A=list(map(int,input().split()))
four=0
two=0
other=0
for a in A:
	if a%4==0:
		four+=1
	elif a%2==0:
		two+=1
	else:
		other+=1
print('Yes') if other+(two>0)-(four+1)<=0 else print('No')