n=int(input())
a=list(map(int,input().split()))
ct1=0;ct2=0;ct4=0
for i in range(n):
  if a[i]%4==0:ct4+=1
  elif a[i]%2==0:ct2+=1
  else:ct1+=1
if ct2!=0:ct1+=1
if ct1>ct4+1:print('No')
else:print('Yes')