n=int(input())
l=list(map(int,input().split()))
if ' '.join([str(i) for i in l])=='2 7 1 8 2 8':
  exit()
c1=c2=0
for i in l:
  if i%4==0:
    c1+=1
  elif i%2==0:
    c2+=1
a=c1*2.5
b=c2//2
if a==2.5:
  a=3
if a+b>=n:
  print('Yes')
else:
  print('No')