x=[0,0,0]

n=int(eval(input()))

for i in input().split():

    if int(i)%4==0:

        x[0]+=1

    elif int(i)%2==0:

        x[1]+=1

    else:

        x[2]+=1

if x[1]==0:

    if x[0]+1>=x[2]:

        print("Yes")

    else:

        print("No")

else:

    if x[0]>=x[2]:

        print("Yes")

    else:

        print("No")

#print(x)

n=int(eval(input()))

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

x,y,z=0,0,0

for i in range(n):

    if a[i]%4==0:

        x+=1

    elif a[i]%2==0:

        y+=1

    else:

        z+=1

if y>0:

    if z<=x:

        print("Yes")

    else:

        print("No")

else:

    if z<=x+1:

        print("Yes")

    else:

        print("No")

x = [0, 0, 0]
n = int(eval(input()))
for i in input().split():
    if int(i) % 4 == 0:
        x[0] += 1
    elif int(i) % 2 == 0:
        x[1] += 1
    else:
        x[2] += 1
if x[1] == 0:
    if x[0] + 1 >= x[2]:
        print("Yes")
    else:
        print("No")
else:
    if x[0] >= x[2]:
        print("Yes")
    else:
        print("No")
# print(x)

n = int(eval(input()))
a = [int(i) for i in input().split()]
x, y, z = 0, 0, 0
for i in range(n):
    if a[i] % 4 == 0:
        x += 1
    elif a[i] % 2 == 0:
        y += 1
    else:
        z += 1
if y > 0:
    if z <= x:
        print("Yes")
    else:
        print("No")
else:
    if z <= x + 1:
        print("Yes")
    else:
        print("No")

-x = [0, 0, 0] -for i in input().split(): -    if int(i) % 4 == 0: -        x[0] += 1 -    elif int(i) % 2 == 0: -        x[1] += 1 +a = [int(i) for i in input().split()] +x, y, z = 0, 0, 0 +for i in range(n): +    if a[i] % 4 == 0: +        x += 1 +    elif a[i] % 2 == 0: +        y += 1 -        x[2] += 1 -if x[1] == 0: -    if x[0] + 1 >= x[2]: +        z += 1 +if y > 0: +    if z <= x: -    if x[0] >= x[2]: +    if z <= x + 1: -# print(x)