N=int(input())
s,t,u=0,0,0
for i in list(map(int,input().split())):
    if i%4==0:
        s+=1
    elif i%2==0:
        t+=1
    else:
        u+=1
if u-s<=1 and (t==0 or u-s<1):
    print("Yes")
else:
    print("No")