n=int(input())
a=[int(i)for i in input().split()]
count2=0
count4=0
for i in a:
    if i%4==0:
        count4+=1
        continue
    if i%2==0:
        count2+=1
if count2!=0:n-=count2-1
if count4>=int(n/2):print("Yes")
else:print("No")