n = int(input())
A =list(map(int,input().split()))
num4 = []
num2 = []
num1 = []
for a in A:
    if a%4 == 0:
        num4.append(a)
    elif a%2 == 0:
        num2.append(a)
    else:
        num1.append(a)

if len(num1)-1 > len(num4):
    print("No")
elif len(num2)==1 and len(num4)<len(num1)+1:
    print("No")
else:
    print("Yes")
