def judge(one, two, four):
	if one > four: return 'No'
	else: return 'Yes'	

N = int(raw_input())
a = map(int, raw_input().split())
one = 0
two = 0
four = 0

for i in range(0, N):
	if a[i] % 4 == 0: four = four + 1
	elif a[i] % 2 == 0: two = two + 1
	else: one = one + 1

print judge(one, two, four)