from collections import defaultdict





N = int(input())

counter = defaultdict(int)

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

    if a % 4 == 0:

        counter[2] += 1

    elif a % 2 == 0:

        counter[1] += 1

    else:

        counter[0] += 1

if counter[1] == 0:

    print('Yes') if counter[0] <= counter[2] + 1 else print('No')

else:

    print('Yes') if counter[0] <= counter[2] else print('No')

from collections import Counter





N = int(input())

c = Counter(map(lambda x: int(x) % 4, input().split()))

print('Yes') if sum([c[1], c[2] > 0, c[3]]) <= c[0] + 1 else print('No')

from collections import defaultdict

N = int(input())
counter = defaultdict(int)
for a in map(int, input().split()):
    if a % 4 == 0:
        counter[2] += 1
    elif a % 2 == 0:
        counter[1] += 1
    else:
        counter[0] += 1
if counter[1] == 0:
    print("Yes") if counter[0] <= counter[2] + 1 else print("No")
else:
    print("Yes") if counter[0] <= counter[2] else print("No")

from collections import Counter

N = int(input())
c = Counter(map(lambda x: int(x) % 4, input().split()))
print("Yes") if sum([c[1], c[2] > 0, c[3]]) <= c[0] + 1 else print("No")

-from collections import defaultdict +from collections import Counter -counter = defaultdict(int) -for a in map(int, input().split()): -    if a % 4 == 0: -        counter[2] += 1 -    elif a % 2 == 0: -        counter[1] += 1 -    else: -        counter[0] += 1 -if counter[1] == 0: -    print("Yes") if counter[0] <= counter[2] + 1 else print("No") -else: -    print("Yes") if counter[0] <= counter[2] else print("No") +c = Counter(map(lambda x: int(x) % 4, input().split())) +print("Yes") if sum([c[1], c[2] > 0, c[3]]) <= c[0] + 1 else print("No")