import collections
n=int(input())
a=[int(i) for i in input().split()]
c=collections.Counter(a)
one_count=0
four_count=0
exist_two=False
for num,x in c.items():
    if(num==2):
        exist_two=True
    elif(num%4==0):
        four_count+=x
    else:
        one_count+=x

if(exist_two):
    if(one_count <= four_count):
        print('Yes')
    else:
        print('No')
else:
    if(one_count <= four_count+1):
        print('Yes')
    else:
        print('No')


