N = int(eval(input()))

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



x1 = x2 = x4 = 0

for a in src:

    if a%2 == 1:

        x1 += 1

    elif a%4 == 0:

        x4 += 1

    else:

        x2 += 1



def solve():

    if x4 >= x1: return True

    if x4 + 1 == x1:

        return x2 == 0

    else: return False



print(('Yes' if solve() else 'No'))

N = int(eval(input()))

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



one = sum([1 for a in src if a%2])

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

two = N - one - four



print(('Yes' if one <= four or (one == four+1 and two==0) else 'No'))

N = int(eval(input()))
src = list(map(int, input().split()))
x1 = x2 = x4 = 0
for a in src:
    if a % 2 == 1:
        x1 += 1
    elif a % 4 == 0:
        x4 += 1
    else:
        x2 += 1


def solve():
    if x4 >= x1:
        return True
    if x4 + 1 == x1:
        return x2 == 0
    else:
        return False


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

N = int(eval(input()))
src = list(map(int, input().split()))
one = sum([1 for a in src if a % 2])
four = sum([1 for a in src if a % 4 == 0])
two = N - one - four
print(("Yes" if one <= four or (one == four + 1 and two == 0) else "No"))

-x1 = x2 = x4 = 0 -for a in src: -    if a % 2 == 1: -        x1 += 1 -    elif a % 4 == 0: -        x4 += 1 -    else: -        x2 += 1 - - -def solve(): -    if x4 >= x1: -        return True -    if x4 + 1 == x1: -        return x2 == 0 -    else: -        return False - - -print(("Yes" if solve() else "No")) +one = sum([1 for a in src if a % 2]) +four = sum([1 for a in src if a % 4 == 0]) +two = N - one - four +print(("Yes" if one <= four or (one == four + 1 and two == 0) else "No"))