n = int(eval(input()))

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



four = sum([1 for a in As if a%4 == 0])

odd = sum([1 for a in As if a%2 == 1])

two = sum([1 for a in As if a%2 == 0 and a%4 != 0])

if four < two%2 + odd - 1:

    print("No")

else:

    print("Yes")
n = int(eval(input()))

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



# four = sum([1 for a in As if a%4 == 0])

# odd = sum([1 for a in As if a%2 == 1])

# two = sum([1 for a in As if a%2 == 0 and a%4 != 0])

four = 0

odd = 0

two = 0

for a in As:

    if a % 2 == 1:

        odd += 1

    elif a % 4 == 0:

        four += 1

    else:

        two += 1





if four < two%2 + odd - 1:

    print("No")

else:

    print("Yes")



n = int(eval(input()))
As = list(map(int, input().split()))
four = sum([1 for a in As if a % 4 == 0])
odd = sum([1 for a in As if a % 2 == 1])
two = sum([1 for a in As if a % 2 == 0 and a % 4 != 0])
if four < two % 2 + odd - 1:
    print("No")
else:
    print("Yes")

n = int(eval(input()))
As = list(map(int, input().split()))
# four = sum([1 for a in As if a%4 == 0])
# odd = sum([1 for a in As if a%2 == 1])
# two = sum([1 for a in As if a%2 == 0 and a%4 != 0])
four = 0
odd = 0
two = 0
for a in As:
    if a % 2 == 1:
        odd += 1
    elif a % 4 == 0:
        four += 1
    else:
        two += 1
if four < two % 2 + odd - 1:
    print("No")
else:
    print("Yes")

-four = sum([1 for a in As if a % 4 == 0]) -odd = sum([1 for a in As if a % 2 == 1]) -two = sum([1 for a in As if a % 2 == 0 and a % 4 != 0]) +# four = sum([1 for a in As if a%4 == 0]) +# odd = sum([1 for a in As if a%2 == 1]) +# two = sum([1 for a in As if a%2 == 0 and a%4 != 0]) +four = 0 +odd = 0 +two = 0 +for a in As: +    if a % 2 == 1: +        odd += 1 +    elif a % 4 == 0: +        four += 1 +    else: +        two += 1