import math

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

N2 = 0
N4 = 0

for i in a:
    if i % 4 == 0:
        N4 += 1
    if i % 2 == 0:
        N2 += 1

if N4 >= math.ceil(N / 3) or N2 >= math.ceil(N*2/3):
    print("Yes")
else:
    print("No")
