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

two = 0
four = 0
for i in a:
    if i % 4 == 0:
        four += 1
    elif i % 2 == 0:
        two += 1

tmp = two * (two > 1)
print('Yes' if four * 2 + (four > 0) + tmp >= n else 'No')
