N = int(input())
A = list(map(int, input().split()))
li = [0,0,0]
for nums in A:
  if nums%4==0:
    li[0] += 1
  elif nums%2==0:
    li[1] += 1
  else:
    li[2] += 1
if li[1]==0 and li[2]-li[0]>1:
  print('No')
if li[1]!=0 and li[2]-li[0]>0:
  print('No')
else:
  print('Yes')