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

MOD2 = 0
MOD4 = 0

for i in a:
    if i % 4 == 0:
        MOD4 += 1
    elif i % 2 == 0:
        MOD2 += 1
if MOD2 == 1:
    MOD2 = 0
if (N-MOD2) // 2 <= MOD4:
    print('Yes')
else:
    print('No')
