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

#print(7//2)
count2 = 0
count4 = 0

for i in range(len(a)):
    if((a[i] % 4) == 0):
        count4 = count4 + 1;
    elif(a[i] ==2):
        count2 = count2 + 1;

if((n//2) >= count4):
    print("Yes")
elif(n > 6 and (n//2) < count4 and count4 >= 2):
    if(n % 2 == 0):
        if(((n//2) - count4)*2 >= count2):
            print("Yes")
    else:
        if((((n//2) - count4)*2)+1 >= count2):
            print("Yes")
elif(n == count2):
    print("Yes")
else:
    print("No")