import math
N = int(input())
A = list(map(int,input().split()))
l = list()
ll = list()
for i in range(len(A)):
  if A[i]%4 == 0:
    l.append(A[i])
  if A[i]%2 == 0:
    ll.append(A[i])
four = len(l)

a = math.ceil(N/3)
b = A.count(0)

if a <= four and b == 0:
  print("Yes")
elif N == len(ll) and b ==0:
  print("Yes")
else:
  print("No")