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
add=b+c
if abs(a-add)<=1:
    print("Yes")
elif c==0:
    print("Yes")
else:
    print("No")
