# C - 4-adjacent

n = int(eval(input()))

count2 = count4 = 0

for a in [int(x)%4 for x in input().split()]:

    if a==0: count4 += 1

    elif a==2: count2 += 1

print(("Yes" if n//2 <= count4 + count2//2 else "No"))
# C - 4-adjacent



# _,a = input(),[int(x)%4 for x in input().split()]

# print("Yes" if a.count(1) + a.count(3) <= a.count(0) + (0 if a.count(2)>0 else 1) else "No")



n,a = int(eval(input())),[int(x)%4 for x in input().split()]

# print("Yes" if n - a.count(2) - a.count(0) <= a.count(0) + (0 if a.count(2)>0 else 1) else "No")

# print("Yes" if n - a.count(2) <= a.count(0)*2 + (0 if a.count(2)>0 else 1) else "No")

# print("Yes" if n <= a.count(0)*2 + a.count(2) + (0 if a.count(2)>0 else 1) else "No")

print(("Yes" if n//2 <= a.count(0) + a.count(2)//2 else "No"))
# C - 4-adjacent
n = int(eval(input()))
count2 = count4 = 0
for a in [int(x) % 4 for x in input().split()]:
    if a == 0:
        count4 += 1
    elif a == 2:
        count2 += 1
print(("Yes" if n // 2 <= count4 + count2 // 2 else "No"))

# C - 4-adjacent
# _,a = input(),[int(x)%4 for x in input().split()]
# print("Yes" if a.count(1) + a.count(3) <= a.count(0) + (0 if a.count(2)>0 else 1) else "No")
n, a = int(eval(input())), [int(x) % 4 for x in input().split()]
# print("Yes" if n - a.count(2) - a.count(0) <= a.count(0) + (0 if a.count(2)>0 else 1) else "No")
# print("Yes" if n - a.count(2) <= a.count(0)*2 + (0 if a.count(2)>0 else 1) else "No")
# print("Yes" if n <= a.count(0)*2 + a.count(2) + (0 if a.count(2)>0 else 1) else "No")
print(("Yes" if n // 2 <= a.count(0) + a.count(2) // 2 else "No"))

-n = int(eval(input())) -count2 = count4 = 0 -for a in [int(x) % 4 for x in input().split()]: -    if a == 0: -        count4 += 1 -    elif a == 2: -        count2 += 1 -print(("Yes" if n // 2 <= count4 + count2 // 2 else "No")) +# _,a = input(),[int(x)%4 for x in input().split()] +# print("Yes" if a.count(1) + a.count(3) <= a.count(0) + (0 if a.count(2)>0 else 1) else "No") +n, a = int(eval(input())), [int(x) % 4 for x in input().split()] +# print("Yes" if n - a.count(2) - a.count(0) <= a.count(0) + (0 if a.count(2)>0 else 1) else "No") +# print("Yes" if n - a.count(2) <= a.count(0)*2 + (0 if a.count(2)>0 else 1) else "No") +# print("Yes" if n <= a.count(0)*2 + a.count(2) + (0 if a.count(2)>0 else 1) else "No") +print(("Yes" if n // 2 <= a.count(0) + a.count(2) // 2 else "No"))