n = int(input())

two = 0
four = 0
for i in map(int, input().split()):
    if i % 4 == 0:
        four += 1
    elif i % 2 == 0:
        two += 1

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