n = int(input())
A=list(map(int, input().split()))

ans="No"
c2=c4=0
for a in A:
    if a%4==0:
        c4+=1
    elif a%2==0:
        c2+=1

if c2==1:
    c2=0

if (n-c2)//2<=c4 :
    ans="Yes"
else:
    ans="No"

print( ans )

