n = int(eval(input()))

cou1 = 0

cou2 = 0

cou4 = 0

lis = list(map(int,input().split()))

for i in range(n):

    if lis[i] % 2 == 0:

        if lis[i] % 4 == 0:

            cou4 += 1

        else:

            cou2 += 1

    else:

        cou1 += 1

if cou2 == 0:

    if cou1 <= cou4 + 1:

        print("Yes")

    else:

        print("No")

else:

    if cou1 <= cou4:

        print("Yes")

    else:

        print("No")
n = int(eval(input()))

lis = list(map(int,input().split()))

nu1 = 0

nu2 = 0

nu4 = 0

for nu in lis:

    if nu % 2 == 0:

        if nu % 4 == 0:

            nu4 += 1

        else:

            nu2 = 1

    else:

        nu1 += 1

if nu4 + 1 >= nu1 + nu2:print("Yes")

else:print("No")
n = int(eval(input()))
cou1 = 0
cou2 = 0
cou4 = 0
lis = list(map(int, input().split()))
for i in range(n):
    if lis[i] % 2 == 0:
        if lis[i] % 4 == 0:
            cou4 += 1
        else:
            cou2 += 1
    else:
        cou1 += 1
if cou2 == 0:
    if cou1 <= cou4 + 1:
        print("Yes")
    else:
        print("No")
else:
    if cou1 <= cou4:
        print("Yes")
    else:
        print("No")

n = int(eval(input()))
lis = list(map(int, input().split()))
nu1 = 0
nu2 = 0
nu4 = 0
for nu in lis:
    if nu % 2 == 0:
        if nu % 4 == 0:
            nu4 += 1
        else:
            nu2 = 1
    else:
        nu1 += 1
if nu4 + 1 >= nu1 + nu2:
    print("Yes")
else:
    print("No")

-cou1 = 0 -cou2 = 0 -cou4 = 0 -for i in range(n): -    if lis[i] % 2 == 0: -        if lis[i] % 4 == 0: -            cou4 += 1 +nu1 = 0 +nu2 = 0 +nu4 = 0 +for nu in lis: +    if nu % 2 == 0: +        if nu % 4 == 0: +            nu4 += 1 -            cou2 += 1 +            nu2 = 1 -        cou1 += 1 -if cou2 == 0: -    if cou1 <= cou4 + 1: -        print("Yes") -    else: -        print("No") +        nu1 += 1 +if nu4 + 1 >= nu1 + nu2: +    print("Yes") -    if cou1 <= cou4: -        print("Yes") -    else: -        print("No") +    print("No")