n=int(input())
a=[int(i) for i in input().split()]
x=[0,0,0]

for i in a:
  if i % 4==0:
    x[2]+=1
  elif i % 2==0:
    x[1]+=1
  else:
    x[0]+=1
 
if x[2] > x[0] or x[0]==0:
  print('Yes')
else:
  print('No')

