import math
import itertools
n = int(input())
a = list(map(int, input().split()))
k = 0
ans = ''
for i in range(n):
  if a[i] % 2 == 0:
    k += 1
if k >= math.floor(n / 2):
  l = [i for i in range(n)]
  for v in itertools.permutations(l, n):
    if ans == '':
      p = 0
      for i in range(n - 1):
        if a[v[i]] * a[v[i + 1]] % 4 == 0:
          next
        else:
          p = 1
          break
      if p == 0:
        ans = 'Yes'
  if ans == '':
    ans = 'N0'
else:
  ans = 'No'
print(ans)