_=int(input())
a=list(map(int,input().split()))
r1=a.count(2)
r2=a.count(6)
r=r1+r2
cnt=0
if r%2!=0:
    cnt=-1

for _ in range(r1):
    a.remove(2)
for _ in range(r2):
    a.remove(6)
if cnt<0:
    for s in a:
        if s%10==0:
            a.remove(s)
            cnt=0
            break
if len(a)==0:
    print('Yes')
else:
    for i in a:
        if i%4==0:
            cnt+=1
    if cnt>=len(a)//2:
        print('Yes')
    else:
        print('No')