import math
n=int(input())
a=[int(i) for i in input().split()]
four=0
two=0
for i in a:
    if i%4==0:
        four+=1
    elif i%2==0:
        two+=1
res=False
if n%3==0:
    if four>=n//3 or four+math.floor(two/2)>=n//3:
        res=True
else:
    if four>=n//3+1 or four+math.floor(two/2)>=n//3+1:
        res=True
print("Yes" if res else "No")