n = int(input())
l=list(map(int ,input().split()))
cnt=0
for i in range(n):
    if l[i]%4==0 or l[i]==1:
        cnt+=1
if n%2==0:
    if cnt>=n//2:
        print("Yes")
    else:
        print("No")
else:
    if cnt>=n//2+1:
        print("Yes")
    else:
        print("No")