N=int(input())
A=list(map(int,input().split()))
A1=0
A2=0
A4=0

for i in range(N):
    if A[i]%4==0:
        A4+=1
    elif A[i]%2==0:
        A2+=1
    else:
        A1+=1
        
if A1>A4:
    print("No")
else:
    print("Yes")