import sys
input = sys.stdin.readline
N = int(input())
a = list(map(int, input().split()))
c2 = 0
c4 = 0
for i in range(N):
  if a[i] % 4 == 0:
    c4 += 1
  elif a[i] % 2 == 0:
    c2 += 1
f = 1
if (N - 1 - c2 // 2) > 0 and c4 == 0: f = 0
if (N - 1 - c2 // 2) // 2 <= c4 and f:
  print("Yes")
else: print("No")