N = int(input())
A = list(map(int,input().split()))
four = 0
two = 0 
for e in A:
    if e%4 == 0:
        four += 1
    elif e %2 == 0:
        two += 1
value = four * 3 + (two//2)*2
if value >= N:
    print('Yes')
else:
    print('No')
