N = int(eval(input()))

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

a, b, c = 0, 0, 0



for i in l:

    if i % 4 == 0:

        c += 1

    elif i % 2 == 0:

        b += 1

    elif not i % 2 == 0:

        a += 1



if b >= 1:

    if c >= a:

        print("Yes")

    else:

        print("No")

else:

    if c+1 >= a:

        print("Yes")

    else:

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

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

a, b, c = 0, 0, 0



for i in l:

    if i % 4 == 0:

        c += 1

    elif i % 2 == 0:

        b += 1

    else:

        a += 1



if b >= 1:

    if c >= a:

        print("Yes")

    else:

        print("No")

else:

    if c+1 >= a:

        print("Yes")

    else:

        print("No")
N = int(eval(input()))
l = list(map(int, input().split()))
a, b, c = 0, 0, 0
for i in l:
    if i % 4 == 0:
        c += 1
    elif i % 2 == 0:
        b += 1
    elif not i % 2 == 0:
        a += 1
if b >= 1:
    if c >= a:
        print("Yes")
    else:
        print("No")
else:
    if c + 1 >= a:
        print("Yes")
    else:
        print("No")

N = int(eval(input()))
l = list(map(int, input().split()))
a, b, c = 0, 0, 0
for i in l:
    if i % 4 == 0:
        c += 1
    elif i % 2 == 0:
        b += 1
    else:
        a += 1
if b >= 1:
    if c >= a:
        print("Yes")
    else:
        print("No")
else:
    if c + 1 >= a:
        print("Yes")
    else:
        print("No")

-    elif not i % 2 == 0: +    else: