n = int(eval(input()))

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



*b, = [x for x in a if x%4 != 0]

mul_4 = n-len(b)



*c, = [x for x in b if x%2 != 0]

mul_2 = (len(b)-len(c))



k = n-(mul_4+mul_2)



if mul_2 == 0 and k <= mul_4+1:

    print("Yes")

elif k <= mul_4:

    print("Yes")

else:

    print("No")

n = int(eval(input()))

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



b1 = 0

b2 = 0

b4 = 0

for _a in a:

    if _a%4 == 0:

        b4 += 1

    elif _a%2 == 0:

        b2 += 1

    else:

        b1 += 1



if b2 == 0:

    print(("Yes" if b1 <= b4+1 else "No"))

else:

    print(("Yes" if b1 <= b4 else "No"))

n = int(eval(input()))
(*a,) = list(map(int, input().split()))
(*b,) = [x for x in a if x % 4 != 0]
mul_4 = n - len(b)
(*c,) = [x for x in b if x % 2 != 0]
mul_2 = len(b) - len(c)
k = n - (mul_4 + mul_2)
if mul_2 == 0 and k <= mul_4 + 1:
    print("Yes")
elif k <= mul_4:
    print("Yes")
else:
    print("No")

n = int(eval(input()))
(*a,) = list(map(int, input().split()))
b1 = 0
b2 = 0
b4 = 0
for _a in a:
    if _a % 4 == 0:
        b4 += 1
    elif _a % 2 == 0:
        b2 += 1
    else:
        b1 += 1
if b2 == 0:
    print(("Yes" if b1 <= b4 + 1 else "No"))
else:
    print(("Yes" if b1 <= b4 else "No"))

-(*b,) = [x for x in a if x % 4 != 0] -mul_4 = n - len(b) -(*c,) = [x for x in b if x % 2 != 0] -mul_2 = len(b) - len(c) -k = n - (mul_4 + mul_2) -if mul_2 == 0 and k <= mul_4 + 1: -    print("Yes") -elif k <= mul_4: -    print("Yes") +b1 = 0 +b2 = 0 +b4 = 0 +for _a in a: +    if _a % 4 == 0: +        b4 += 1 +    elif _a % 2 == 0: +        b2 += 1 +    else: +        b1 += 1 +if b2 == 0: +    print(("Yes" if b1 <= b4 + 1 else "No")) -    print("No") +    print(("Yes" if b1 <= b4 else "No"))