n = int(input())
a = list(map(int, input().split()))
fCount = 0
tCount = 0

for i in range(n):
    if a[i] % 4 == 0:
        fCount += 1
    elif a[i] % 2 == 0:
        tCount += 1

ans = n - fCount * 3 - (tCount // 2) * 2

if ans > 0:
    print('No')
else:
    print('Yes')


