from collections import Counter



N = int(eval(input()))

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

C = Counter(4 if a % 4 == 0 else 2 if a % 2 == 0 else 1 for a in A)



if C[2] == 0:

    print(("Yes" if C[1] <= C[4] + 1 else "No"))

else:

    print(("Yes" if C[1] <= C[4] else "No"))

N = int(eval(input()))

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



def solve():

    f, t, o = 0, 0, 0

    for a in A:

        if a % 4 == 0:

            f += 1

        elif a % 2 == 0:

            t += 1

        else:

            o += 1



    if t == 0:

        return (o <= f + 1)

    else:

        return (o <= f)



if solve():

    print("Yes")

else:

    print("No")

from collections import Counter

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

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


def solve():
    f, t, o = 0, 0, 0
    for a in A:
        if a % 4 == 0:
            f += 1
        elif a % 2 == 0:
            t += 1
        else:
            o += 1
    if t == 0:
        return o <= f + 1
    else:
        return o <= f


if solve():
    print("Yes")
else:
    print("No")

-from collections import Counter - -C = Counter(4 if a % 4 == 0 else 2 if a % 2 == 0 else 1 for a in A) -if C[2] == 0: -    print(("Yes" if C[1] <= C[4] + 1 else "No")) + + +def solve(): +    f, t, o = 0, 0, 0 +    for a in A: +        if a % 4 == 0: +            f += 1 +        elif a % 2 == 0: +            t += 1 +        else: +            o += 1 +    if t == 0: +        return o <= f + 1 +    else: +        return o <= f + + +if solve(): +    print("Yes") -    print(("Yes" if C[1] <= C[4] else "No")) +    print("No")