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

four = 0
two = 0
not_four = 0

for i in range(N):
    if a[i] % 4 == 0:
        four += 1

    elif a[i] % 2 == 0 and a[i] % 4 != 0:
        two += 1
        if two == 2:
            four += 1
            two = 0
    else:
        not_four += 1

if two == 1:
    not_four += 1

while four > 0 and not_four > 0:
    four -= 1
    not_four -= 2

if four >= not_four:
    print("Yes")

else:
    print("No")
