N = int(eval(input()))

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



f, t = 0, 0

for a in A:

    if a % 4 == 0:

        f += 1

    elif a % 2 == 0:

        t += 1



if N - f - t <= f + (t == 0):

    print("Yes")

else:

    print("No")

N = int(eval(input()))

A = [int(i) % 4 for i in input().split()]



f, t = A.count(0), A.count(2)

if N - f - t <= f + (t == 0):

    print("Yes")

else:

    print("No")

N = int(eval(input()))
A = [int(i) for i in input().split()]
f, t = 0, 0
for a in A:
    if a % 4 == 0:
        f += 1
    elif a % 2 == 0:
        t += 1
if N - f - t <= f + (t == 0):
    print("Yes")
else:
    print("No")

N = int(eval(input()))
A = [int(i) % 4 for i in input().split()]
f, t = A.count(0), A.count(2)
if N - f - t <= f + (t == 0):
    print("Yes")
else:
    print("No")

-A = [int(i) for i in input().split()] -f, t = 0, 0 -for a in A: -    if a % 4 == 0: -        f += 1 -    elif a % 2 == 0: -        t += 1 +A = [int(i) % 4 for i in input().split()] +f, t = A.count(0), A.count(2)