n=int(input())
A=list(map(int,input().split()))
ans4 = 0
ans2 = 0
for a in A:
  if a % 4 == 0:
    ans4 += 1
  elif a % 2 == 0:
    ans2 += 1
ans2 = ans2-(ans2%2)
if (n-ans2)//2 <= ans4:
  print("Yes")
else:
  print("No")
c354920818ca548bf52af2f19bd640295d762ddd
<mask token>

<mask token>
for a in A:
    if a % 4 == 0:
        ans4 += 1
    elif a % 2 == 0:
        ans2 += 1
<mask token>
if (n - ans2) // 2 <= ans4:
    print('Yes')
else:
    print('No')

n = int(input())
A = list(map(int, input().split()))
ans4 = 0
ans2 = 0
for a in A:
    if a % 4 == 0:
        ans4 += 1
    elif a % 2 == 0:
        ans2 += 1
ans2 = ans2 - ans2 % 2
if (n - ans2) // 2 <= ans4:
    print('Yes')
else:
    print('No')

n=int(input())
A=list(map(int,input().split()))
ans4 = 0
ans2 = 0
for a in A:
  if a % 4 == 0:
    ans4 += 1
  elif a % 2 == 0:
    ans2 += 1
ans2 = ans2-(ans2%2)
if (n-ans2)//2 <= ans4:
  print("Yes")
else:
  print("No")