n = int(input())
A = [int(i) for i in input().split()]

cnt2 = 0
cnt4 = 0

for i in range(n):
    if A[i] % 4 == 0:
        cnt4 += 1
    elif A[i] % 2 == 0:
        cnt2 += 1
        

if cnt4 * 2  + cnt2 >= n or cnt4 + 1 >= n-cnt2:
    print('Yes')
else:
    print('No')