N=int(input())
a=list(map(int,input().split()))
cnt2=0
cnt_2=0
cnt4=0
for k in range(N):
    if a[k]==2:
        cnt_2+=1
for i in range(N):
    if a[i]%2==0:
        cnt2+=1
if cnt2 == N:
    print("Yes")
else:
    for j in range(N):
        if a[j]%4==0:
            cnt4+=1
    if cnt4 >= int(N/2):
        print("Yes")
    else:
        if (cnt_2+cnt4*2) >= N:
          print("Yes")
        else:
          print("No")