n = int(input())

l = list(map(int,input().split()))

multi_four = []
multi_two  = []

for i in l:
    if i % 4 == 0:
        multi_four.append(i)
    
    elif i % 2 == 0 and i % 4 != 0:
        multi_two.append(i)

if n - len(multi_two) == 0:
    print('Yes')

elif len(multi_two) == 0 and n - len(multi_four) <= 2:
    print('Yes')

elif n - (len(multi_two) + len(multi_four)) <= len(multi_four):
    print('Yes')

else:
    print('No')