n = int(input())
l = map(int, input().split())
x, y, z = 0, 0, 0
for a in l:
    if a % 4 == 0:
        z += 1
    elif a % 2 == 0:
        y += 1
    else:
        x += 1
if y > 0:
    x += 1
print('Yes' if x <= z + 1 else 'No')

6dfe2e2c8176c55fb6248004aa0c70919a59d861
<mask token>

<mask token>
for a in l:
    if a % 4 == 0:
        z += 1
    elif a % 2 == 0:
        y += 1
    else:
        x += 1
if y > 0:
    x += 1
print('Yes' if x <= z + 1 else 'No')

n = int(input())
l = map(int, input().split())
x, y, z = 0, 0, 0
for a in l:
    if a % 4 == 0:
        z += 1
    elif a % 2 == 0:
        y += 1
    else:
        x += 1
if y > 0:
    x += 1
print('Yes' if x <= z + 1 else 'No')
