n=int(input())
a=list(map(int,input().split()))
cnt4=0
cnt2=0
for i in a:
    if i%4==0:
        cnt4+=1
    elif i%2==0:
        cnt2+=1
if cnt4*2+1+cnt2-1>=n:
    print("Yes")
elif cnt2==n:
    print("Yes")
else:
    print("No")