n = int(eval(input()))

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



cnt2 = 0

cnt4 = 0

for i in range(n):

    if a[i] % 2 == 0:

        if a[i] % 4 != 0:

            cnt2 += 1

        else:

            cnt4 += 1



if cnt2:

    if ((n-cnt2+1)//2) <= cnt4:

        print('Yes')

    else:

        print('No')

else:

    if (n-cnt2)//2 <= cnt4:

        print('Yes')

    else:

        print('No')

n = int(eval(input()))

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



cnt2 = cnt4 = 0

for i in a:

    if i % 2 == 0:

        if i % 4 != 0:

            cnt2 += 1

        else:

            cnt4 += 1



if cnt2:

    if ((n-cnt2+1)//2) <= cnt4:

        print('Yes')

    else:

        print('No')

else:

    if (n-cnt2)//2 <= cnt4:

        print('Yes')

    else:

        print('No')

n = int(eval(input()))
a = list(map(int, input().split()))
cnt2 = 0
cnt4 = 0
for i in range(n):
    if a[i] % 2 == 0:
        if a[i] % 4 != 0:
            cnt2 += 1
        else:
            cnt4 += 1
if cnt2:
    if ((n - cnt2 + 1) // 2) <= cnt4:
        print("Yes")
    else:
        print("No")
else:
    if (n - cnt2) // 2 <= cnt4:
        print("Yes")
    else:
        print("No")

n = int(eval(input()))
a = list(map(int, input().split()))
cnt2 = cnt4 = 0
for i in a:
    if i % 2 == 0:
        if i % 4 != 0:
            cnt2 += 1
        else:
            cnt4 += 1
if cnt2:
    if ((n - cnt2 + 1) // 2) <= cnt4:
        print("Yes")
    else:
        print("No")
else:
    if (n - cnt2) // 2 <= cnt4:
        print("Yes")
    else:
        print("No")

-cnt2 = 0 -cnt4 = 0 -for i in range(n): -    if a[i] % 2 == 0: -        if a[i] % 4 != 0: +cnt2 = cnt4 = 0 +for i in a: +    if i % 2 == 0: +        if i % 4 != 0: