n=int(input())
t=list(map(int,input().split()))
a=0
b=0
c=0
for i in range(n):
    if t[i]%4==0:#4の倍数
        a+=1
    elif t[i]%2==0 and t[i]%4!=0:#2の倍数かつ4の倍数でない
        b+=1
    else:
        c+=1
if b==0:
    if abs(c-a)<=1:
        print("Yes")
    else:
        print("No")
elif b!=0:
    if c<=a:
        print("Yes")
    else:
        print("No")
