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

four = 0
ten = 0
not_four = 0

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

    elif a[i] == 10:
        ten += 1
        if ten == 2:
            four += 1
            ten = 0

    else:
        not_four += 1

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

if four == 0 and not_four <= 0:
    print("Yes")
else:
    print("No")
