_=int(input())
a=list(map(int,input().split()))
r1=a.count(2)
r2=a.count(6)
r=r1+r2
for _ in range(r1):
    a.remove(2)
for _ in range(r2):
    a.remove(6)
cnt=0
if r%2!=0:
    cnt-=1
    for i in a:
        if i%10==0 and i%4!=0:
            a.remove(i)
            cnt=0
            break
for i in a:
    if i%4==0:
        cnt+=1
if cnt>=len(a)//2:
    print('Yes')
else:
    print('No')
