# def makelist(n, m):

# 	return [[0 for i in range(m)] for j in range(n)]



# n = int(input())

# a, b = map(int, input().split())

# s = input()





yes = "Yes"

no = "No"





N = int(eval(input()))

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



four = 0

two = 0

none = 0

for e in a:

	if e % 4 == 0:

		four += 1

	elif e % 2 != 0:

		none += 1

	else:

		two += 1



if four >= none or (two == 0 and four+1 >= none):

	print(yes)

else:

	print(no)

N = int(eval(input()))

four = 0

two = 0

one = 0

for e in map(int, input().split()):

    if e % 4 == 0:

        four += 1

    elif e % 2 != 0:

        one += 1

    else:

        two += 1

if four >= one:

    print("Yes")

else:

    if two == 0 and four == one - 1:

        print("Yes")

    else:

        print("No")

# def makelist(n, m):
# 	return [[0 for i in range(m)] for j in range(n)]
# n = int(input())
# a, b = map(int, input().split())
# s = input()
yes = "Yes"
no = "No"
N = int(eval(input()))
a = list(map(int, input().split()))
four = 0
two = 0
none = 0
for e in a:
    if e % 4 == 0:
        four += 1
    elif e % 2 != 0:
        none += 1
    else:
        two += 1
if four >= none or (two == 0 and four + 1 >= none):
    print(yes)
else:
    print(no)

N = int(eval(input()))
four = 0
two = 0
one = 0
for e in map(int, input().split()):
    if e % 4 == 0:
        four += 1
    elif e % 2 != 0:
        one += 1
    else:
        two += 1
if four >= one:
    print("Yes")
else:
    if two == 0 and four == one - 1:
        print("Yes")
    else:
        print("No")

-# def makelist(n, m): -# 	return [[0 for i in range(m)] for j in range(n)] -# n = int(input()) -# a, b = map(int, input().split()) -# s = input() -yes = "Yes" -no = "No" -a = list(map(int, input().split())) -none = 0 -for e in a: +one = 0 +for e in map(int, input().split()): -        none += 1 +        one += 1 -if four >= none or (two == 0 and four + 1 >= none): -    print(yes) +if four >= one: +    print("Yes") -    print(no) +    if two == 0 and four == one - 1: +        print("Yes") +    else: +        print("No")