N = int(input())
A = list(map(int,input().split()))
cnt4, cnt2 = 0, 0
for a in A:
  if a%4==0: cnt4 += 1
  elif a%2==0: cnt2 += 1

cnt2 = cnt2 if cnt2%2==0 else cnt2-1
print('Yes' if (N-cnt2)//2<=cnt4 else 'No')