n,*A=map(int,open(0).read().split())
C=[0]*3
for a in A:
    for i in range(2,-1,-1):
        if a%2**i == 0:
            C[i] += 1
            break
print("Yes"*(C[0]<=C[2]or (C[0]==C[2]+1 and C[1]==0))or"No")