n = int(input())
aa = list(map(int,input().split()))

d2 = 0
d4 = 0

for ai in aa:
  if ai % 4 == 0:
    d4 += 1
  elif ai % 2 == 0:
    d2 += 1
  else:
    pass  
  
if d4*3 + (d2//2)*2 >= n :
  print('Yes')
else:
  print('No')  