n = int(input())
a = [int(i) for i in input().split()]
cnta = 0
cntb = 0

for i in range(n):
    if a[i]%4==0:
        cnta += 1
    elif a[i]%2 == 0:
        cntb += 1
else:
    if cntb == 1:
        cntb = 0
        
if cnta*3+cntb >= n:
    ans = "Yes"
else:
    ans = "No"

print(ans)