n = int(input())
a = list(map(int, input().split()))
b = [0,0,0]
for i in range(n):
    j = 0
    while True:
        if a[i]%2==0:
            a[i] = a[i]//2
            j +=1
        else:
            b[j]+=1
            break

        if j>1:
            b[2]+=1
            break
if b[1]==0 and b[0]-1<=b[2]:
    print("Yes")
elif (b[0]-1)*2<=b[2]:
    print("Yes")
else:
    print("No")