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