n=int(input())
a=list(map(int,input().split()))
b_1=0
b_2=0
b_4=0
for i in range(n):
    if a[i]//2==0:
        b_1+=1
    elif a[i]//2==1:
        b_2+=1
    elif 2<=a[i]//2:
        b_4+=1
if b_2==0 and b_1<=b_4+1:
    print("Yes")
elif b_1<=b_4:
    print("Yes")
else:
    print("No")