n = int(input())
a = map(int, input().split())
cnt=0
twocnt=0
for i in a:
	if(i % 4 == 0):
		cnt+=1
	elif(i % 2 == 0):
		twocnt+=1
cnt += twocnt//2

if(cnt >= n//2):
	print ("Yes")
else:
	print ("No")