N=int(input())
a=list((input().split()))
for i in range (len(a)):
    if int(a[i])%4==0 and int(a[i])!=0:
            a[i]=2
    elif int(a[i])%2==0 and int(a[i])!=0:
            a[i]=1
    else:
            a[i]=0  
        
count=0
count+=a.count(2)*3
count+=a.count(1)
if count>=len(a):
    print ("Yes")
else:
    print ("No")