n = int(input())
a = list(map(int,input().split()))

b_4 = 0
b_2 = 0
kisu = 0

for i in range(n):
    if a[i] % 4 ==1 or 3:
        kisu = kisu + 1
    elif a[i] % 2 == 2:
        b_2 = b_2 + 1
    else:
        b_4 = b_4 + 1
        
if b_2 == 0 and kisu - b_4 < 2:
    print('Yes')
elif b_2 > 1 and kisu - b_4 <1:
    print('Yes')
else:
    print('No')