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

d={
    2:0,
    4:0,
    1:0
}

for a in A:
    if a%4==0:
        d[4]+=1
    elif a%2==0:
        d[2]+=1
    else:
        d[1]+=1

four=d[4]
odd=d[1] + int((d[2]+2-1)/2)

if odd<=four+1:     # x4x4x4xみたいな感じ
    print("Yes")
else:
    print("No")