from collections import Counter

n = int(input())
a = list(map(int, input().split()))
counter = Counter()

for ai in a:
    if ai % 4 == 0:
        counter[4] += 1
    elif ai % 2 == 0:
        counter[2] += 1
    else:
        counter[1] += 1

ans = 'No'
if counter[1] == counter[4]:
    ans = 'Yes'
if counter[2] == 0:
    if counter[1] == counter[4] + 1:
        ans = 'Yes'

print(ans)


