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 MOD4 == 0:
    if N == MOD2:
        print('Yes')
    else:
        print('No')
elif (N-MOD2-1) // 2 <= MOD4:
    print('Yes')
else:
    print('No')

