import itertools

N = int(input())
a = [int(i) for i in input().split()]

count2 = 0
b = 0
for i in a:
    if i % 4 == 0:
        count2 += 1
    elif i % 2 == 0:
        b += 1
        if b == 2:
            count2 += 1
            b = 0
        
    if count2 >= N-2:
        break

ans = 'Yes' if count2>= N-2 else 'No'
print(ans)